Permalink
Browse files

Fixes issue 10 - don't use reset() to get the first array value

  • Loading branch information...
1 parent d4c2a76 commit 553cb7c30d9132347fa3e117252fcbb25cfec2a9 @shupp shupp committed Jul 4, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 HTTP/OAuth/Signature/Common.php
@@ -55,9 +55,9 @@ public function getBase($method, $url, array $params)
unset($params['oauth_signature']);
}
- $croppedUrl = reset(explode('?', $url));
+ $urlParts = explode('?', $url);
- $parts = array($method, $croppedUrl,
+ $parts = array($method, $urlParts[0],
HTTP_OAuth::buildHTTPQuery($params));
$base = implode('&', HTTP_OAuth::urlencode($parts));
$this->debug('Signing with base string: ' . $base);

0 comments on commit 553cb7c

Please sign in to comment.