From: Harvie Date: Fri, 29 Oct 2010 16:29:08 +0000 (+0200) Subject: Added experimental PATH_INFO support (will need further changes to make this realy... X-Git-Url: http://git.harvie.cz/?p=mirrors%2FJukeBox.git;a=commitdiff_plain;h=74524fb0c86f3f45878acdf84d92294e9a8a0fce Added experimental PATH_INFO support (will need further changes to make this realy usable) --- 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: ?');