From 793e153d0fb7d437546cfd7d77ae73af5d1733fc Mon Sep 17 00:00:00 2001 From: Adam Mazur Date: Mon, 20 Mar 2017 08:00:24 +0100 Subject: [PATCH 1/3] Update nanogp.php --- dist/nanogp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/nanogp.php b/dist/nanogp.php index e2b860b..350f78a 100644 --- a/dist/nanogp.php +++ b/dist/nanogp.php @@ -89,7 +89,7 @@ function send_gprequest( $url ) { $request['access_token']=$atoken; $ch = curl_init(); - $url = $url . '?' . http_build_query($request); + $url = $url . '?' . http_build_query($request, '', '&'); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); @@ -131,4 +131,4 @@ function send_gprequest( $url ) { -?> \ No newline at end of file +?> From be1c7a1730d0684753f1570925c751974a45a7e2 Mon Sep 17 00:00:00 2001 From: Adam Mazur Date: Mon, 20 Mar 2017 08:02:52 +0100 Subject: [PATCH 2/3] Update authorize.php --- dist/authorize.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/authorize.php b/dist/authorize.php index 46d5d74..45efaef 100644 --- a/dist/authorize.php +++ b/dist/authorize.php @@ -78,7 +78,7 @@ "scope" => "https://picasaweb.google.com/data profile email" ); - $request_to = OAUTH2_AUTH_URL . '?' . http_build_query($params); + $request_to = OAUTH2_AUTH_URL . '?' . http_build_query($params, '', '&'); header("Location: " . $request_to); // display authorization form } @@ -103,7 +103,7 @@ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_VERBOSE, true); - curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params)); + curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params, '', '&')); $response = curl_exec($ch); $authObj = json_decode($response); $info = curl_getinfo($ch); From d1a3c8daf00742fec0d573a20d3fd146888aa614 Mon Sep 17 00:00:00 2001 From: Adam Mazur Date: Mon, 20 Mar 2017 08:03:38 +0100 Subject: [PATCH 3/3] Update tools.php --- dist/admin/tools.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/admin/tools.php b/dist/admin/tools.php index 4f896c3..036645f 100644 --- a/dist/admin/tools.php +++ b/dist/admin/tools.php @@ -57,7 +57,7 @@ function get_new_access_token(){ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_VERBOSE, true); - curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params)); + curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params, '', '&')); $response = curl_exec ($ch); $authObj=json_decode($response); $msg=curl_error($ch); @@ -94,4 +94,4 @@ function write_log( $msg ) { } -?> \ No newline at end of file +?>