summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Auth/OpenID.php32
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.