diff options
author | Rodrigo Primo <rodrigo@hacklab.com.br> | 2012-10-11 11:15:46 -0300 |
---|---|---|
committer | Rodrigo Primo <rodrigo@hacklab.com.br> | 2012-10-11 11:15:46 -0300 |
commit | a9b4e1d62f6437eaf1fda29ebb1ba497f84ba2bc (patch) | |
tree | 5b6109061ba41c3dc9fbe5548fbc5d1188c881b3 | |
parent | dbd9d3edb9e23a4d8482f8af999f725bc74502c9 (diff) | |
download | php-openid-a9b4e1d62f6437eaf1fda29ebb1ba497f84ba2bc.zip php-openid-a9b4e1d62f6437eaf1fda29ebb1ba497f84ba2bc.tar.gz php-openid-a9b4e1d62f6437eaf1fda29ebb1ba497f84ba2bc.tar.bz2 |
Fixing issue #32 : https://github.com/openid/php-openid/issues/32
-rw-r--r-- | examples/detect.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/detect.php b/examples/detect.php index 3c13a5a..9c59db3 100644 --- a/examples/detect.php +++ b/examples/detect.php @@ -512,7 +512,11 @@ if (!$_include) { $status[] = detect_stores($r, $body); $status[] = detect_fetcher($r, $body); $status[] = detect_xml($r, $body); - $status[] = detect_query_corruption($r, $body); + + if (isset($_SERVER['REQUEST_METHOD'])) { + $status[] = detect_query_corruption($r, $body); + } + $result = true; foreach ($status as $v) { |