diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -576,7 +576,7 @@ if (!isset($_SESSION['tokens'])) $_SESSION['tokens']=array(); // Token are atta | |||
576 | // Returns a token. | 576 | // Returns a token. |
577 | function getToken() | 577 | function getToken() |
578 | { | 578 | { |
579 | $rnd = sha1(uniqid('',true).'_'.mt_rand()); // We generate a random string. | 579 | $rnd = sha1(uniqid('',true).'_'.mt_rand().$GLOBALS['salt']); // We generate a random string. |
580 | $_SESSION['tokens'][$rnd]=1; // Store it on the server side. | 580 | $_SESSION['tokens'][$rnd]=1; // Store it on the server side. |
581 | return $rnd; | 581 | return $rnd; |
582 | } | 582 | } |