summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Schießle <schiesbn@potato.(none)>2012-09-17 17:02:17 +0200
committerBjörn Schießle <schiesbn@potato.(none)>2012-09-17 17:02:17 +0200
commit1207ae1f99d86c5335602ebc51011b204aa0d5e2 (patch)
tree75e0a27a84e214f06de875b7b8a4cd002b0a6870 /lib
parent21bffbfb6964d46e36240d2001dd8bb4533b6d3d (diff)
downloadnextcloud-server-1207ae1f99d86c5335602ebc51011b204aa0d5e2.tar.gz
nextcloud-server-1207ae1f99d86c5335602ebc51011b204aa0d5e2.zip
add leading '?' to parameter list (fixes bug #1732)
Diffstat (limited to 'lib')
-rw-r--r--lib/helper.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 70b2f78862b..dda5fcc5f0c 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -62,8 +62,11 @@ class OC_Helper {
}
}
- foreach($args as $k => $v) {
- $urlLinkTo .= '&'.$k.'='.$v;
+ if (!empty($args)) {
+ $urlLinkTo .= '?';
+ foreach($args as $k => $v) {
+ $urlLinkTo .= '&'.$k.'='.$v;
+ }
}
return $urlLinkTo;