[Pkg-owncloud-commits] [owncloud] 51/394: urlencode file/dir to allow special characters in filename/path (issue #95)

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:11:25 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit 6e8f970999ebc3e4e10ede8ab63d836fe3785236
Author: Björn Schießle <schiessle at owncloud.com>
Date:   Wed Nov 7 10:45:29 2012 +0100

    urlencode file/dir to allow special characters in filename/path (issue #95)
---
 apps/files_sharing/public.php |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index 454282d..09a1f0f 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -69,9 +69,9 @@ if (isset($_GET['file']) || isset($_GET['dir'])) {
 			if (isset($linkItem['share_with'])) {
 				// Check password
 				if (isset($_GET['file'])) {
-					$url = OCP\Util::linkToPublic('files').'&file='.$_GET['file'];
+					$url = OCP\Util::linkToPublic('files').'&file='.urlencode($_GET['file']);
 				} else {
-					$url = OCP\Util::linkToPublic('files').'&dir='.$_GET['dir'];
+					$url = OCP\Util::linkToPublic('files').'&dir='.urlencode($_GET['dir']);
 				}
 				if (isset($_POST['password'])) {
 					$password = $_POST['password'];

-- 
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