summaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-09-28 22:27:52 +0200
committerBart Visscher <bartv@thisnet.nl>2012-09-28 22:27:52 +0200
commit22d22d19c079f54cf12a6b47981c22aa1432346d (patch)
treed7f477c28a6e8d56d2edb842a28679a97b4e88a6 /lib/helper.php
parentfed34aecfa5b36c031ed754ed245549aa4a4194b (diff)
downloadnextcloud-server-22d22d19c079f54cf12a6b47981c22aa1432346d.tar.gz
nextcloud-server-22d22d19c079f54cf12a6b47981c22aa1432346d.zip
Do urlencoding in linkTo functions
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 3bb30620175..8e578735f4c 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -33,6 +33,7 @@ class OC_Helper {
* @param string $app app
* @param string $file file
* @param array $args array with param=>value, will be appended to the returned url
+ * The value of $args will be urlencoded
* @return string the url
*
* Returns a url to the given app and file.
@@ -65,7 +66,7 @@ class OC_Helper {
if (!empty($args)) {
$urlLinkTo .= '?';
foreach($args as $k => $v) {
- $urlLinkTo .= '&'.$k.'='.$v;
+ $urlLinkTo .= '&'.$k.'='.urlencode($v);
}
}
@@ -77,6 +78,7 @@ class OC_Helper {
* @param string $app app
* @param string $file file
* @param array $args array with param=>value, will be appended to the returned url
+ * The value of $args will be urlencoded
* @return string the url
*
* Returns a absolute url to the given app and file.