fix cyclic hash algo
This commit is contained in:
parent
6000cc2b26
commit
28284f8725
|
@ -99,9 +99,9 @@
|
|||
return false;
|
||||
|
||||
/* (3) Compares content */
|
||||
$hashed = self::secure_hash($fc);
|
||||
$hashed = self::secure_hash($GLOBALS['TOKEN']);
|
||||
|
||||
if( strlen($hashed) !== 64 || $GLOBALS['TOKEN'] !== $hashed )
|
||||
if( strlen($hashed) !== 64 || $fc !== $hashed )
|
||||
return false;
|
||||
|
||||
/* (4) Stores new content */
|
||||
|
|
Loading…
Reference in New Issue