From dabf5a830c00a965a70bc921c91f571f5528cd0d Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sun, 19 Jul 2009 12:52:25 -0400 Subject: [PATCH] This is Horde_Oauth, not H_S_Twitter... --- framework/Oauth/lib/Horde/Oauth/Request.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.11.0