From: Michael J. Rubinsky Date: Sun, 19 Jul 2009 16:52:25 +0000 (-0400) Subject: This is Horde_Oauth, not H_S_Twitter... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=dabf5a830c00a965a70bc921c91f571f5528cd0d;p=horde.git This is Horde_Oauth, not H_S_Twitter... --- diff --git a/framework/Oauth/lib/Horde/Oauth/Request.php b/framework/Oauth/lib/Horde/Oauth/Request.php index 97991e563..ebe4a48a1 100644 --- a/framework/Oauth/lib/Horde/Oauth/Request.php +++ b/framework/Oauth/lib/Horde/Oauth/Request.php @@ -92,7 +92,7 @@ class Horde_Oauth_Request return implode('&', $parts); } - public function buildAuthorizationHeader() + public function buildAuthorizationHeader($realm = '') { $header = ''; var_dump($this->_params); @@ -101,7 +101,9 @@ class Horde_Oauth_Request $header .= Horde_Oauth_Utils::urlencodeRfc3986($k) . '="' . Horde_Oauth_Utils::urlencodeRfc3986($v) . '",'; } } - $header .= 'realm="' . Horde_Oauth_Utils::urlencodeRfc3986('twitter.com') . '"'; + if (!empty($realm)) { + $header .= 'realm="' . Horde_Oauth_Utils::urlencodeRfc3986($realm) . '"'; + } return 'OAuth ' . $header; }