[VD] fix #3074 authentification (return) URL not useable if the connctor url has "?"

This commit is contained in:
nao-pon
2019-12-31 22:25:30 +09:00
parent 06e34954e5
commit 34c74cb9cd
7 changed files with 13 additions and 10 deletions
+1 -2
View File
@@ -131,8 +131,7 @@ class elFinderVolumeFlysystemGoogleDriveNetmount extends ExtDriver
$options['url'] = elFinder::getConnectorUrl();
}
$callback = $options['url']
. '?cmd=netmount&protocol=googledrive&host=1';
$callback = $options['url'] . (strpos($options['url'], '?') !== false? '&' : '?') . 'cmd=netmount&protocol=googledrive&host=1';
$client->setRedirectUri($callback);
if (!$aToken && empty($_GET['code'])) {