You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2009/02/20 12:08:37 UTC

svn commit: r746204 - /incubator/shindig/trunk/php/src/gadgets/servlet/MakeRequestServlet.php

Author: chabotc
Date: Fri Feb 20 11:08:36 2009
New Revision: 746204

URL: http://svn.apache.org/viewvc?rev=746204&view=rev
Log:
Don't urldecode makeRequest params

Modified:
    incubator/shindig/trunk/php/src/gadgets/servlet/MakeRequestServlet.php

Modified: incubator/shindig/trunk/php/src/gadgets/servlet/MakeRequestServlet.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/servlet/MakeRequestServlet.php?rev=746204&r1=746203&r2=746204&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/servlet/MakeRequestServlet.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/servlet/MakeRequestServlet.php Fri Feb 20 11:08:36 2009
@@ -35,7 +35,7 @@
     try {
       $this->noHeaders = true;
       $context = new GadgetContext('GADGET');
-      $url = urldecode(isset($_GET['url']) ? $_GET['url'] : (isset($_POST['url']) ? $_POST['url'] : false));
+      $url = isset($_GET['url']) ? $_GET['url'] : (isset($_POST['url']) ? $_POST['url'] : false);
       if (! $url || empty($url)) {
         header("HTTP/1.0 400 Bad Request", true);
         echo "<html><body><h1>400 - Missing url parameter</h1></body></html>";