[Pkg-owncloud-commits] [owncloud] 279/394: use rawurlencode to fix 1073
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:12:26 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 4436e76959fe8230d343aabfe2dbbc777d7f2bc5
Author: Jörn Friedrich Dreyer <jfd at butonic.de>
Date: Wed Jan 9 14:55:58 2013 +0100
use rawurlencode to fix 1073
---
lib/helper.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/helper.php b/lib/helper.php
index 3af03b4..96242a8 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -45,7 +45,7 @@ class OC_Helper {
if( $app_path && file_exists( $app_path.'/'.$file )) {
if(substr($file, -3) == 'php' || substr($file, -3) == 'css') {
$urlLinkTo = OC::$WEBROOT . '/?app=' . $app;
- $urlLinkTo .= ($file!='index.php')?'&getfile=' . urlencode($file):'';
+ $urlLinkTo .= ($file!='index.php')?'&getfile=' . rawurlencode($file):'';
}else{
$urlLinkTo = OC_App::getAppWebPath($app) . '/' . $file;
}
@@ -66,7 +66,7 @@ class OC_Helper {
if (!empty($args)) {
$urlLinkTo .= '?';
foreach($args as $k => $v) {
- $urlLinkTo .= '&'.$k.'='.urlencode($v);
+ $urlLinkTo .= '&'.$k.'='.rawurlencode($v);
}
}
--
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