aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 4068272c..0bdb6d83 100644
--- a/index.php
+++ b/index.php
@@ -576,7 +576,7 @@ if (!isset($_SESSION['tokens'])) $_SESSION['tokens']=array(); // Token are atta
576// Returns a token. 576// Returns a token.
577function getToken() 577function 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}