berkut
Новичок
request tracker "bug"
PHP:
function generateTicketMask()
{
mt_srand ((double) microtime() * 1000000);
$alpha1 = mt_rand(65,90);
mt_srand ((double) microtime() * 1000000);
$alpha2 = mt_rand(65,90);
mt_srand ((double) microtime() * 1000000);
$alpha3 = mt_rand(65,90);
$alpha1 = chr($alpha1);
$alpha2 = chr($alpha2);
$alpha3 = chr($alpha3);
// This was a serious issue in v2, The stupid computer would come up with words like GAY and client would be pissed as hell.
$stopwords = array("GAY", "ASS", "SEX", "POO");
$prefix = $alpha1.$alpha2.$alpha3;
if (in_array(strtoupper($prefix), $stopwords))
{
return generateTicketMask();
}
...