Files: urldecode urlencoded dir names, fixes oc-2111

This commit is contained in:
Arthur Schiwon 2012-10-23 13:49:19 +02:00
parent 726409b272
commit 6a2a915559
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ if(!isset($_SESSION['timezone'])) {
}
OCP\App::setActiveNavigationEntry( 'files_index' );
// Load the files
$dir = isset( $_GET['dir'] ) ? stripslashes($_GET['dir']) : '';
$dir = isset( $_GET['dir'] ) ? urldecode(stripslashes($_GET['dir'])) : '';
// Redirect if directory does not exist
if(!OC_Filesystem::is_dir($dir.'/')) {
header('Location: '.$_SERVER['SCRIPT_NAME'].'');