diff --git a/plugin.info.txt b/plugin.info.txt index 7eef646..5a52a6a 100644 --- a/plugin.info.txt +++ b/plugin.info.txt @@ -1,7 +1,7 @@ base fileshare author Soft2C.de email info@soft2c.de -date 2017-09-20 +date 2023-03-06 name fileshare plugin desc upload, show and download files from directory on web server url http://www.soft2c.de diff --git a/syntax/Fileshare.php b/syntax/Fileshare.php index 7cd92be..bb67450 100644 --- a/syntax/Fileshare.php +++ b/syntax/Fileshare.php @@ -77,7 +77,8 @@ public function handle($match, $state, $pos, Doku_Handler $handler){ * @return bool If rendering was successful. */ public function render($mode, Doku_Renderer $renderer, $data) { - if ($_FILES ['upload'] ['tmp_name']) { + //if ($_FILES ['upload'] ['tmp_name']) { + if(isset($_FILES['upload']) ){ $dir = $_POST ['ns']; $tmp_name = $_FILES ['upload'] ['tmp_name']; // basename() kann Directory-Traversal-Angriffe verhindern; @@ -162,10 +163,10 @@ private function createDir($dir, $renderer) { private function readFileList($dir, $delete) { $refreshbutton = $this->getLang ( 'refreshbutton' ); $loeschenbutton = $this->getLang ( 'loeschenbutton' ); - + $html =''; $html .= '
'; $html .= '
'; - $html .= ''; + $html .= ''; if($this->isAuthorized('role_delete')){ $html .= ''; $html .= '';