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

Commit

Permalink
Fix serverUrl detection
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Nov 17, 2013
1 parent c0e0a81 commit 1d24274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/action.share/class.ShareCenter.php
Expand Up @@ -663,7 +663,7 @@ public function buildPublicDlURL()
if ($dlURL != "") {
return rtrim($dlURL, "/");
} else {
$fullUrl = AJXP_Utils::detectServerURL() . dirname($_SERVER['REQUEST_URI']);
$fullUrl = AJXP_Utils::detectServerURL(true);
return str_replace("\\", "/", rtrim($fullUrl, "/").rtrim(str_replace(AJXP_INSTALL_PATH, "", $downloadFolder), "/"));
}
}
Expand Down Expand Up @@ -1031,7 +1031,7 @@ public function createSharedMinisite($httpVars, $repository, $accessDriver)
$data["DOWNLOAD_DISABLED"] = true;
}
//$data["TRAVEL_PATH_TO_ROOT"] = $this->computeMinisiteToServerURL();
$data["AJXP_APPLICATION_BASE"] = AJXP_Utils::detectServerURL();
$data["AJXP_APPLICATION_BASE"] = AJXP_Utils::detectServerURL(true);

$outputData = serialize($data);
$hash = self::computeHash($outputData, $downloadFolder);
Expand Down

0 comments on commit 1d24274

Please sign in to comment.