Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 5b53d81

Browse files
committed
Strip query string part of the url, otherwise using query like ?xdebug=true appends the query part to the base value.
1 parent c209510 commit 5b53d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/plugins/gui.ajax/class.AJXP_ClientDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function switchAction($action, $httpVars, $fileVars)
138138
}
139139
}
140140

141-
$root = $_SERVER['REQUEST_URI'];
141+
$root = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
142142
$configUrl = ConfService::getCoreConf("SERVER_URL");
143143
if(!empty($configUrl)){
144144
$root = '/'.ltrim(parse_url($configUrl, PHP_URL_PATH), '/');

0 commit comments

Comments
 (0)