diff options
author | tailor <cygnus@janrain.com> | 2006-08-04 21:03:55 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2006-08-04 21:03:55 +0000 |
commit | 87736913782e5df4a6f999c8ae196f22c8c36332 (patch) | |
tree | d5efbb1857e2fb6b4ed334623df785c709784381 | |
parent | 47ff30846a3b2cbb43772b23877ae9711e62a0dc (diff) | |
download | php-openid-87736913782e5df4a6f999c8ae196f22c8c36332.zip php-openid-87736913782e5df4a6f999c8ae196f22c8c36332.tar.gz php-openid-87736913782e5df4a6f999c8ae196f22c8c36332.tar.bz2 |
[project @ Removed kvform warnings]
-rw-r--r-- | Auth/OpenID/KVForm.php | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/Auth/OpenID/KVForm.php b/Auth/OpenID/KVForm.php index d918d88..6075c44 100644 --- a/Auth/OpenID/KVForm.php +++ b/Auth/OpenID/KVForm.php @@ -20,17 +20,6 @@ */ class Auth_OpenID_KVForm { /** - * Issue a warning when parsing KV form - * - * @static - * @access private - */ - function _warn($msg) - { - trigger_error($msg, E_USER_WARNING); - } - - /** * Convert an OpenID colon/newline separated string into an * associative array * @@ -43,8 +32,6 @@ class Auth_OpenID_KVForm { $last = array_pop($lines); if ($last !== '') { - $msg = 'No newline at end of kv string:' . var_export($kvs, true); - Auth_OpenID_KVForm::_warn($msg); array_push($lines, $last); if ($strict) { return false; @@ -57,8 +44,6 @@ class Auth_OpenID_KVForm { $line = $lines[$lineno]; $kv = explode(':', $line, 2); if (count($kv) != 2) { - $msg = "No colon on line $lineno: " . var_export($line, true); - Auth_OpenID_KVForm::_warn($msg); if ($strict) { return false; } @@ -68,9 +53,6 @@ class Auth_OpenID_KVForm { $key = $kv[0]; $tkey = trim($key); if ($tkey != $key) { - $msg = "Whitespace in key on line $lineno:" . - var_export($key, true); - Auth_OpenID_KVForm::_warn($msg); if ($strict) { return false; } @@ -79,9 +61,6 @@ class Auth_OpenID_KVForm { $value = $kv[1]; $tval = trim($value); if ($tval != $value) { - $msg = "Whitespace in value on line $lineno: " . - var_export($value, true); - Auth_OpenID_KVForm::_warn($msg); if ($strict) { return false; } @@ -114,20 +93,14 @@ class Auth_OpenID_KVForm { } if (strpos($key, ':') !== false) { - $msg = '":" in key:' . var_export($key, true); - Auth_OpenID_KVForm::_warn($msg); return null; } if (strpos($key, "\n") !== false) { - $msg = '"\n" in key:' . var_export($key, true); - Auth_OpenID_KVForm::_warn($msg); return null; } if (strpos($value, "\n") !== false) { - $msg = '"\n" in value:' . var_export($value, true); - Auth_OpenID_KVForm::_warn($msg); return null; } $serialized .= "$key:$value\n"; |