From 74524fb0c86f3f45878acdf84d92294e9a8a0fce Mon Sep 17 00:00:00 2001 From: Harvie Date: Fri, 29 Oct 2010 18:29:08 +0200 Subject: [PATCH] Added experimental PATH_INFO support (will need further changes to make this realy usable) --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index bae54eb..27a54b8 100755 --- a/index.php +++ b/index.php @@ -76,6 +76,7 @@ if(get_magic_quotes_gpc()) die("Error: magic_quotes_gpc needs to be disabled!\n" $useflash = is_file($flash_player_swf); //Little magic with directories ;o) +if($_SERVER['PATH_INFO']!='') $_GET['dir']=$_SERVER['PATH_INFO']; $current_dir = ereg_replace('/+', '/', '/'.$_GET['dir'].'/'); if(eregi('(/|\\\\)\\.\\.(/|\\\\)', $current_dir)) { //check for directory traversal ;) header('Location: ?'); -- 2.30.2