Skip to content
Browse files

Annoying Notice-Messages fixed

reset-function only works properly with variables as parameter ... PHP
hooray!
  • Loading branch information...
1 parent 278d1e1 commit d37339b82bc3204c75175840f8d1521edca49393 @c-lehmann c-lehmann committed with shupp Dec 18, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 HTTP/OAuth/Signature/Common.php
View
6 HTTP/OAuth/Signature/Common.php
@@ -54,8 +54,10 @@ public function getBase($method, $url, array $params)
if (array_key_exists('oauth_signature', $params)) {
unset($params['oauth_signature']);
}
-
- $parts = array($method, reset(explode('?', $url)),
+
+ $croppedUrl = reset(explode('?', $url));
+
+ $parts = array($method, $croppedUrl,
HTTP_OAuth::buildHTTPQuery($params));
$base = implode('&', HTTP_OAuth::urlencode($parts));
$this->debug('Signing with base string: ' . $base);

0 comments on commit d37339b

Please sign in to comment.
Something went wrong with that request. Please try again.