]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use SCRIPT_NAME instead of PHP_SELF which won't send the PATH_INFO, this prevents...
authorLukas Reschke <lukas@statuscode.ch>
Sat, 18 Aug 2012 07:24:35 +0000 (09:24 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Fri, 24 Aug 2012 13:00:53 +0000 (15:00 +0200)
apps/files/index.php

index 60a3836cb591d3d66ef3a14ad9301f544373b76f..077187fbc136077b6503dd938771cb0673e79572 100644 (file)
@@ -39,7 +39,7 @@ OCP\App::setActiveNavigationEntry( 'files_index' );
 $dir = isset( $_GET['dir'] ) ? stripslashes($_GET['dir']) : '';
 // Redirect if directory does not exist
 if(!OC_Filesystem::is_dir($dir.'/')) {
-       header('Location: '.$_SERVER['PHP_SELF'].'');
+       header('Location: '.$_SERVER['SCRIPT_NAME'].'');
 }
 
 $files = array();