diff options
Diffstat (limited to 'framework/Web/UI')
-rw-r--r-- | framework/Web/UI/THiddenFieldPageStatePersister.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/THiddenFieldPageStatePersister.php b/framework/Web/UI/THiddenFieldPageStatePersister.php index d2cb5226..24ef5491 100644 --- a/framework/Web/UI/THiddenFieldPageStatePersister.php +++ b/framework/Web/UI/THiddenFieldPageStatePersister.php @@ -50,7 +50,7 @@ class THiddenFieldPageStatePersister extends TPageStatePersister {
if (strlen($key) > 64)
$key = pack('H32', md5($key));
- elseif (strlen($key) < 64)
+ else if (strlen($key) < 64)
$key = str_pad($key, 64, "\0");
return md5((str_repeat("\x5c", 64) ^ substr($key, 0, 64)) . pack('H32', md5((str_repeat("\x36", 64) ^ substr($key, 0, 64)) . $data)));
}
|