summaryrefslogtreecommitdiffstats
path: root/examples/detect.php
diff options
context:
space:
mode:
authorRodrigo Primo <rodrigo@hacklab.com.br>2012-10-11 11:15:46 -0300
committerRodrigo Primo <rodrigo@hacklab.com.br>2012-10-11 11:15:46 -0300
commita9b4e1d62f6437eaf1fda29ebb1ba497f84ba2bc (patch)
tree5b6109061ba41c3dc9fbe5548fbc5d1188c881b3 /examples/detect.php
parentdbd9d3edb9e23a4d8482f8af999f725bc74502c9 (diff)
downloadphp-openid-a9b4e1d62f6437eaf1fda29ebb1ba497f84ba2bc.zip
php-openid-a9b4e1d62f6437eaf1fda29ebb1ba497f84ba2bc.tar.gz
php-openid-a9b4e1d62f6437eaf1fda29ebb1ba497f84ba2bc.tar.bz2
Fixing issue #32 : https://github.com/openid/php-openid/issues/32
Diffstat (limited to 'examples/detect.php')
-rw-r--r--examples/detect.php6
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) {