]> git.mxchange.org Git - core.git/commitdiff
& 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 5822f1efdbb26bae0c21325eb3951f7a3bf7b47e..9b7a089c0b8eddb95cb31f96b04ebd2355e42488 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 a496d3f49ef185eb150e4db11606564e2c06ad5f..bcf0c157829808186ae749094539a3487050bd9e 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');