diff --git a/index.php b/index.php index 3bdc6b9..5d4549c 100644 --- a/index.php +++ b/index.php @@ -59,6 +59,9 @@ if($_POST) { } $file = $_REQUEST['file'] ?: '.'; +// strip url syntax, like file://.... +$file = preg_replace('@^.+://@','',$file); + if($_GET['do'] == 'list') { if (is_dir($file)) { $directory = $file;