diff options
author | tailor <cygnus@janrain.com> | 2007-04-04 22:44:07 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2007-04-04 22:44:07 +0000 |
commit | f53a81c83f27a5d84e998b197b6569e35a12df8b (patch) | |
tree | e0d0f3accc372f6f045cd3eb7ebf10fecac2691b /examples/detect.php | |
parent | 74b60c994d94dc260fc40572b38a4be8afdb3fa6 (diff) | |
download | php-openid-f53a81c83f27a5d84e998b197b6569e35a12df8b.zip php-openid-f53a81c83f27a5d84e998b197b6569e35a12df8b.tar.gz php-openid-f53a81c83f27a5d84e998b197b6569e35a12df8b.tar.bz2 |
[project @ Add bytes and toBytes to avoid multibyte string overloading]
Diffstat (limited to 'examples/detect.php')
-rw-r--r-- | examples/detect.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/detect.php b/examples/detect.php index ed9ef4f..3d06cf6 100644 --- a/examples/detect.php +++ b/examples/detect.php @@ -251,7 +251,7 @@ function detect_random($r, &$out) } if ($f !== false) { - $dataok = (strlen($data) == $numbytes); + $dataok = (Auth_OpenID::bytes($data) == $numbytes); $ok = $dataok && !$size; $msg .= 'It seems to exist '; if ($dataok) { |