Author: chabotc
Date: Thu May 22 01:54:32 2008
New Revision: 659050

URL: http://svn.apache.org/viewvc?rev=659050&view=rev
Log:
Don't instance signingFetcher if authz is empty, was the wrong way around

Modified:
    incubator/shindig/trunk/php/src/gadgets/http/ProxyServlet.php

Modified: incubator/shindig/trunk/php/src/gadgets/http/ProxyServlet.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/http/ProxyServlet.php?rev=659050&r1=659049&r2=659050&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/http/ProxyServlet.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/http/ProxyServlet.php Thu May 22 
01:54:32 2008
@@ -51,8 +51,8 @@
                                header("HTTP/1.0 400 Bad Request", true);
                                echo "<html><body><h1>400 - Missing url 
parameter</h1></body></html>";
                        }
-                       $signingFetcherFactory = false;
-                       if (empty($_GET['authz'])) {
+                       $signingFetcherFactory = $gadgetSigner = false;
+                       if (!empty($_GET['authz'])) {
                                $gadgetSigner = 
Config::get('security_token_signer');
                                $gadgetSigner = new $gadgetSigner();
                                $signingFetcherFactory = new 
SigningFetcherFactory(Config::get("private_key_file"));                    


Reply via email to