fix cyclic hash algo

This commit is contained in:
xdrm-brackets 2016-11-08 10:41:27 +01:00
parent 6000cc2b26
commit 28284f8725
1 changed files with 2 additions and 2 deletions

View File

@ -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 */