diff --git a/openid.php b/openid.php index 14e684b..680c27b 100644 --- a/openid.php +++ b/openid.php @@ -926,7 +926,7 @@ function validate() $response = $this->request($server, 'POST', $params); - return preg_match('/is_valid\s*:\s*true/i', $response); + return preg_match('/is_valid\s*:\s*true/i', $response) === 1; } protected function getAxAttributes()