diff --git a/lib/properties.php b/lib/properties.php index 0994352..9c36767 100644 --- a/lib/properties.php +++ b/lib/properties.php @@ -2,6 +2,13 @@ include("headers.php"); include("settings.php"); $t = $text['properties']; + +// Establish the real absolute path to the file/folder +$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($fileName,$docRoot) !== 0) { + die(""); +} ?> @@ -17,9 +24,6 @@ $t = $text['properties'];

-


: