aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/index.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-10-23 13:49:19 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-10-23 13:50:24 +0200
commit6a2a91555957085a860e7786977fb5026e9b1164 (patch)
tree2b51f2438a23ecde99332acaaa6829951fe1e88b /apps/files/index.php
parent726409b272c9e4f3940ad657300154862e54d1b1 (diff)
downloadnextcloud-server-6a2a91555957085a860e7786977fb5026e9b1164.tar.gz
nextcloud-server-6a2a91555957085a860e7786977fb5026e9b1164.zip
Files: urldecode urlencoded dir names, fixes oc-2111
Diffstat (limited to 'apps/files/index.php')
-rw-r--r--apps/files/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/index.php b/apps/files/index.php
index 493087d26f1..240fc029fcc 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'].'');