From 1ab77087bac91a340868ec3fb142803f4e881a62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=A3=AB=E7=AB=8B?= Date: Tue, 19 Oct 2021 13:41:07 +0800 Subject: [PATCH] Update openid.php fix for: Required parameter $update_claimed_id follows optional parameter $method --- openid.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openid.php b/openid.php index b9c80cd..0331d35 100644 --- a/openid.php +++ b/openid.php @@ -154,7 +154,7 @@ function hostExists($url) return !!gethostbynamel($server); } - protected function request_curl($url, $method='GET', $params=array(), $update_claimed_id) + protected function request_curl($url, $method='GET', $params=array(), $update_claimed_id=false) { $params = http_build_query($params, '', '&'); $curl = curl_init($url . ($method == 'GET' && $params ? '?' . $params : '')); @@ -262,7 +262,7 @@ protected function parse_header_array($array, $update_claimed_id) return $headers; } - protected function request_streams($url, $method='GET', $params=array(), $update_claimed_id) + protected function request_streams($url, $method='GET', $params=array(), $update_claimed_id=false) { if(!$this->hostExists($url)) { throw new ErrorException("Could not connect to $url.", 404);