You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by ch...@apache.org on 2009/04/03 12:06:04 UTC

svn commit: r761594 - /incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php

Author: chabotc
Date: Fri Apr  3 10:06:04 2009
New Revision: 761594

URL: http://svn.apache.org/viewvc?rev=761594&view=rev
Log:
sha1: If the optional raw_output  is set to TRUE, then the sha1 digest is instead returned in raw binary format.. and we need the raw string :)

Modified:
    incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php

Modified: incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php?rev=761594&r1=761593&r2=761594&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php Fri Apr  3 10:06:04 2009
@@ -136,7 +136,7 @@
         } else {
           // on any other content-type of post (application/{json,xml,xml+atom}) use the body signing hash
           // see http://oauth.googlecode.com/svn/spec/ext/body_hash/1.0/drafts/4/spec.html for details
-          $queryParams['oauth_body_hash'] = base64_encode(sha1($request->getPostBody()));
+          $queryParams['oauth_body_hash'] = base64_encode(sha1($request->getPostBody(), true));
         }
       }
       $msgParams = array();