From 6a2a91555957085a860e7786977fb5026e9b1164 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 23 Oct 2012 13:49:19 +0200 Subject: [PATCH] Files: urldecode urlencoded dir names, fixes oc-2111 --- apps/files/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/index.php b/apps/files/index.php index 493087d26f..240fc029fc 100644 --- a/apps/files/index.php +++ b/apps/files/index.php @@ -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'].'');