Browse files

be explicit about the arg_separator when building query strings

xml users will need to handle encoding the string as necessary
closes #163
  • Loading branch information...
1 parent 84b01ba commit 674dfe04322e07b1c99891391c0ce35bb4862cc1 @daaku daaku committed Jul 14, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/facebook.php
View
4 src/facebook.php
@@ -711,7 +711,7 @@ protected function getUrl($name, $path='', $params=array()) {
$url .= $path;
}
if ($params) {
- $url .= '?' . http_build_query($params);
+ $url .= '?' . http_build_query($params, null, '&');
}
return $url;
}
@@ -738,7 +738,7 @@ protected function getCurrentUrl() {
unset($params[$key]);
}
if (!empty($params)) {
- $query = '?' . http_build_query($params);
+ $query = '?' . http_build_query($params, null, '&');
}
}

0 comments on commit 674dfe0

Please sign in to comment.