Author: fabien
Date: 2010-04-01 16:17:52 +0200 (Thu, 01 Apr 2010)
New Revision: 28961

Modified:
   branches/1.3/lib/controller/sfWebController.class.php
   branches/1.4/lib/controller/sfWebController.class.php
Log:
[1.3, 1.4] fixed sfWebController "redirect" method redirects a wrong place when 
there are more than two GET parameters (closes #8083)

Modified: branches/1.3/lib/controller/sfWebController.class.php
===================================================================
--- branches/1.3/lib/controller/sfWebController.class.php       2010-04-01 
14:13:52 UTC (rev 28960)
+++ branches/1.3/lib/controller/sfWebController.class.php       2010-04-01 
14:17:52 UTC (rev 28961)
@@ -178,9 +178,11 @@
     if (empty($url))
     {
       throw new InvalidArgumentException('Cannot redirect to an empty URL.'); 
-    } 
+    }
 
     $url = $this->genUrl($url, true);
+    // see #8083
+    $url = str_replace('&', '&', $url);
 
     if (sfConfig::get('sf_logging_enabled'))
     {

Modified: branches/1.4/lib/controller/sfWebController.class.php
===================================================================
--- branches/1.4/lib/controller/sfWebController.class.php       2010-04-01 
14:13:52 UTC (rev 28960)
+++ branches/1.4/lib/controller/sfWebController.class.php       2010-04-01 
14:17:52 UTC (rev 28961)
@@ -178,9 +178,11 @@
     if (empty($url))
     {
       throw new InvalidArgumentException('Cannot redirect to an empty URL.'); 
-    } 
+    }
 
     $url = $this->genUrl($url, true);
+    // see #8083
+    $url = str_replace('&', '&', $url);
 
     if (sfConfig::get('sf_logging_enabled'))
     {

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to