diff options
author | Kevin Turner <kevin@janrain.com> | 2008-06-25 18:53:31 +0000 |
---|---|---|
committer | Kevin Turner <kevin@janrain.com> | 2008-06-25 18:53:31 +0000 |
commit | 09755d244e0658b2a27f652cacd4b548d605b96f (patch) | |
tree | 2d75adfcb12196f54fa8a2b501bf939d4ba64e75 | |
parent | 0863aed5f17a305673dc22588306c62d9c705885 (diff) | |
download | php-openid-09755d244e0658b2a27f652cacd4b548d605b96f.zip php-openid-09755d244e0658b2a27f652cacd4b548d605b96f.tar.gz php-openid-09755d244e0658b2a27f652cacd4b548d605b96f.tar.bz2 |
[project @ remove Auth_OpenID::quoteMInimal. Resolves #262.]
-rw-r--r-- | Auth/OpenID.php | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/Auth/OpenID.php b/Auth/OpenID.php index d455972..709470c 100644 --- a/Auth/OpenID.php +++ b/Auth/OpenID.php @@ -353,38 +353,6 @@ class Auth_OpenID { } /** - * Turn a string into an ASCII string. - * - * Replace non-ascii characters with a %-encoded, UTF-8 - * encoding. This function will fail if the input is a string and - * there are non-7-bit-safe characters. It is assumed that the - * caller will have already translated the input into a Unicode - * character sequence, according to the encoding of the HTTP POST - * or GET. - * - * Do not escape anything that is already 7-bit safe, so we do the - * minimal transform on the identity URL - * - * @access private - */ - function quoteMinimal($s) - { - $res = array(); - for ($i = 0; $i < strlen($s); $i++) { - $c = $s[$i]; - if ($c >= "\x80") { - for ($j = 0; $j < count(utf8_encode($c)); $j++) { - array_push($res, sprintf("%02X", ord($c[$j]))); - } - } else { - array_push($res, $c); - } - } - - return implode('', $res); - } - - /** * Implements python's urlunparse, which is not available in PHP. * Given the specified components of a URL, this function rebuilds * and returns the URL. |