../../ security check
This commit is contained in:
parent
98dfce1391
commit
4a35600a74
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ if (! isset($_SERVER["PATH_INFO"])) {
|
|||
|
||||
$shortPath = $_SERVER["PATH_INFO"];
|
||||
if ($shortPath == '/') $shortPath = '';
|
||||
// extra security check to avoid /photos/index/../.. like urls, maybe useless but..
|
||||
if (strpos($shortPath, '..') !== false) die(".. found in url");
|
||||
|
||||
$folders = array();
|
||||
$imageFiles = array();
|
||||
|
|
Loading…
Reference in a new issue