From 1276e894b59996ff455639442b4daccf3dac3bf0 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Thu, 18 Sep 2014 15:40:03 +0100 Subject: [PATCH] File/folder message instead and go back --- lib/file-control.php | 2 +- lib/properties.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/file-control.php b/lib/file-control.php index c07eb3c..87e0857 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -39,7 +39,7 @@ for ($i=0; $i"); + die("alert('Sorry - problem with file/folder requested');window.history.back();"); }; } diff --git a/lib/properties.php b/lib/properties.php index 4c49650..8399d6d 100644 --- a/lib/properties.php +++ b/lib/properties.php @@ -7,7 +7,7 @@ $t = $text['properties']; $fileName=realpath($docRoot.$iceRoot.str_replace("|","/",strClean($_GET['fileName']))); // If it doesn't exist, or doesn't start with the $docRoot, stop here if (!file_exists($fileName) || strpos(str_replace("\\","/",$fileName),$docRoot) !== 0) { - die(""); + die(""); } ?>