X-Git-Url: http://git.harvie.cz/?p=mirrors%2FJukeBox.git;a=blobdiff_plain;f=index.php;fp=index.php;h=27a54b8119318c93ccf9bc1d3f7c6b64fcaffbed;hp=bae54eb72f847c3030423cd8c4b590f3b2998f66;hb=74524fb0c86f3f45878acdf84d92294e9a8a0fce;hpb=6cded67435c70391c1a3dadc399193e8be4a7bb9 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: ?');