Skip to content

Commit 674dfe0

Browse files
committed
be explicit about the arg_separator when building query strings
xml users will need to handle encoding the string as necessary closes #163
1 parent 84b01ba commit 674dfe0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/facebook.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ protected function getUrl($name, $path='', $params=array()) {
711711
$url .= $path;
712712
}
713713
if ($params) {
714-
$url .= '?' . http_build_query($params);
714+
$url .= '?' . http_build_query($params, null, '&');
715715
}
716716
return $url;
717717
}
@@ -738,7 +738,7 @@ protected function getCurrentUrl() {
738738
unset($params[$key]);
739739
}
740740
if (!empty($params)) {
741-
$query = '?' . http_build_query($params);
741+
$query = '?' . http_build_query($params, null, '&');
742742
}
743743
}
744744

0 commit comments

Comments
 (0)