Skip to content
Snippets Groups Projects
Commit a9a27306 authored by Björn Schießle's avatar Björn Schießle
Browse files

fix copy&paste bug from previous commit

parent 1d200c55
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ if (isset($_GET['file']) || isset($_GET['dir'])) { ...@@ -49,7 +49,7 @@ if (isset($_GET['file']) || isset($_GET['dir'])) {
$dir = $baseDir; $dir = $baseDir;
} else { } else {
$type = 'file'; $type = 'file';
$path = $_GET['dir']; $path = $_GET['file'];
if(strlen($path)>1 and substr($path, -1, 1)==='/') { if(strlen($path)>1 and substr($path, -1, 1)==='/') {
$path=substr($path, 0, -1); $path=substr($path, 0, -1);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment