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

Commit

Permalink
Fix call to Utils in generated share.php file.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed May 11, 2016
1 parent f9a0b8b commit a35a6e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/action.share/class.ShareStore.php
Expand Up @@ -77,8 +77,8 @@ private function createGenericLoader(){
if(!is_file($this->downloadFolder."/share.php")){
$loader_content = '<'.'?'.'php
define("AJXP_EXEC", true);
require_once("'.str_replace("\\", "/", AJXP_INSTALL_PATH).'/'.AJXP_BIN_FOLDER_REL.'/class.AJXP_Utils.php");
$hash = Pydio\Core\Utils\AJXP_Utils::securePath(Pydio\Core\Utils\AJXP_Utils::sanitize($_GET["hash"], AJXP_SANITIZE_ALPHANUM));
require_once("'.str_replace("\\", "/", AJXP_INSTALL_PATH).'/core/src/pydio/Core/Utils/Utils.php");
$hash = Pydio\Core\Utils\Utils::securePath(Pydio\Core\Utils\Utils::sanitize($_GET["hash"], AJXP_SANITIZE_ALPHANUM));
if(file_exists($hash.".php")){
require_once($hash.".php");
}else{
Expand Down

0 comments on commit a35a6e5

Please sign in to comment.