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

Commit

Permalink
Fix html base if set via SERVER_URL parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Dec 10, 2014
1 parent cc545e5 commit 8ea5763
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/plugins/gui.ajax/class.AJXP_ClientDriver.php
Expand Up @@ -142,6 +142,7 @@ public function switchAction($action, $httpVars, $fileVars)
$configUrl = ConfService::getCoreConf("SERVER_URL");
if(!empty($configUrl)){
$root = '/'.ltrim(parse_url($configUrl, PHP_URL_PATH), '/');
if(strlen($root) > 1) $root = rtrim($root, '/').'/';
}else{
preg_match ('/ws-(.)*\/|settings|dashboard|welcome/', $root, $matches, PREG_OFFSET_CAPTURE);
if(count($matches)){
Expand Down

0 comments on commit 8ea5763

Please sign in to comment.