]> source.dussan.org Git - nextcloud-server.git/commitdiff
Files: urldecode urlencoded dir names, fixes oc-2111
authorArthur Schiwon <blizzz@owncloud.com>
Tue, 23 Oct 2012 11:49:19 +0000 (13:49 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Tue, 23 Oct 2012 11:50:24 +0000 (13:50 +0200)
apps/files/index.php

index 493087d26f1155eaaab65869d2c94f7ff1520867..240fc029fcc27f0a1ca1f9f332dadf4304b529ca 100644 (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'].'');