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

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure mkfile is compatible with the node signature
(cherry picked from commit b0d83c9)
  • Loading branch information
cdujeu committed Mar 17, 2014
1 parent 210559c commit edce64d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/plugins/access.fs/class.fsAccessDriver.php
Expand Up @@ -568,7 +568,11 @@ public function switchAction($action, $httpVars, $fileVars)
case "mkfile";

$messtmp="";
$filename=AJXP_Utils::decodeSecureMagic($httpVars["filename"], AJXP_SANITIZE_FILENAME);
if(empty($httpVars["filename"]) && isSet($httpVars["node"])){
$filename=AJXP_Utils::decodeSecureMagic($httpVars["node"], AJXP_SANITIZE_FILENAME);
}else{
$filename=AJXP_Utils::decodeSecureMagic($httpVars["filename"], AJXP_SANITIZE_FILENAME);
}
$filename = substr($filename, 0, ConfService::getCoreConf("NODENAME_MAX_LENGTH"));
$this->filterUserSelectionToHidden(array($filename));
$content = "";
Expand Down

0 comments on commit edce64d

Please sign in to comment.