& should not be part of URLs...
authorRoland Häder <roland@mxchange.org>
Fri, 21 Aug 2009 18:14:26 +0000 (18:14 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 21 Aug 2009 18:14:26 +0000 (18:14 +0000)
inc/classes/main/response/http/class_HttpResponse.php
inc/classes/main/response/image/class_ImageResponse.php

index 5822f1e..9b7a089 100644 (file)
@@ -152,7 +152,7 @@ class HttpResponse extends BaseResponse implements Responseable {
                } // END - if
 
                // Add redirect header
-               $this->addHeader('Location', $url);
+               $this->addHeader('Location', str_replace('&amp;', '&', $url));
 
                // Set correct response status
                $this->setResponseStatus('301 Moved Permanently');
index a496d3f..bcf0c15 100644 (file)
@@ -166,7 +166,7 @@ class ImageResponse extends BaseResponse implements Responseable {
                } // END - if
 
                // Add redirect header
-               $this->addHeader('Location', $url);
+               $this->addHeader('Location', str_replace('&amp;', '&', $url));
 
                // Set correct response status
                $this->setResponseStatus('301 Moved Permanently');