summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorxue <>2005-11-18 01:26:39 +0000
committerxue <>2005-11-18 01:26:39 +0000
commit47e6ce79dfaa25397c8d1bfec2134f17c894ed87 (patch)
treefbba47751904c5f3eaf1bf24d5854723d4de7e05 /framework/Web/UI
parent767e2e7d4177727226bc66d12f43cdc7af3b0c04 (diff)
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/THiddenFieldPageStatePersister.php2
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)));
}