[Pkg-owncloud-commits] [owncloud] 63/67: Files: urldecode urlencoded dir names, fixes oc-2111
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:10:46 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.1
in repository owncloud.
commit c2e3999f76cd5c0fe33584571e432c737037b62d
Author: Arthur Schiwon <blizzz at owncloud.com>
Date: Tue Oct 23 13:49:19 2012 +0200
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 493087d..240fc02 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'].'');
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list