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 /Auth/OpenID/SQLStore.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 'Auth/OpenID/SQLStore.php')
-rw-r--r-- | Auth/OpenID/SQLStore.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Auth/OpenID/SQLStore.php b/Auth/OpenID/SQLStore.php index 5829f18..b71729d 100644 --- a/Auth/OpenID/SQLStore.php +++ b/Auth/OpenID/SQLStore.php @@ -29,6 +29,11 @@ $__Auth_OpenID_PEAR_AVAILABLE = @include_once 'DB.php'; require_once 'Auth/OpenID/Interface.php'; /** + * @access private + */ +require_once 'Auth/OpenID.php'; + +/** * This is the parent class for the SQL stores, which contains the * logic common to all of the SQL stores. * @@ -494,7 +499,7 @@ class Auth_OpenID_SQLStore extends Auth_OpenID_OpenIDStore { function _octify($str) { $result = ""; - for ($i = 0; $i < strlen($str); $i++) { + for ($i = 0; $i < Auth_OpenID::bytes($str); $i++) { $ch = substr($str, $i, 1); if ($ch == "\\") { $result .= "\\\\\\\\"; |