Merge pull request #1308 from TheSFReader/master
Changed the linkTo function (from Helper class) to get rid of an unnecessary (and potentially non conform) leading '&' character when adding arguments
This commit is contained in:
commit
a6040d0cc7
1 changed files with 2 additions and 5 deletions
|
@ -78,11 +78,8 @@ class OC_Helper {
|
|||
}
|
||||
}
|
||||
|
||||
if (!empty($args)) {
|
||||
$urlLinkTo .= '?';
|
||||
foreach($args as $k => $v) {
|
||||
$urlLinkTo .= '&'.$k.'='.urlencode($v);
|
||||
}
|
||||
if ($args && $query = http_build_query($args, '', '&')) {
|
||||
$urlLinkTo .= '?'.$query;
|
||||
}
|
||||
|
||||
return $urlLinkTo;
|
||||
|
|
Loading…
Reference in a new issue