]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/response/http/class_HttpResponse.php
& should not be part of URLs...
[core.git] / inc / classes / main / response / http / class_HttpResponse.php
index 5822f1efdbb26bae0c21325eb3951f7a3bf7b47e..9b7a089c0b8eddb95cb31f96b04ebd2355e42488 100644 (file)
@@ -152,7 +152,7 @@ class HttpResponse extends BaseResponse implements Responseable {
                } // END - if
 
                // Add redirect header
                } // END - if
 
                // Add redirect header
-               $this->addHeader('Location', $url);
+               $this->addHeader('Location', str_replace('&', '&', $url));
 
                // Set correct response status
                $this->setResponseStatus('301 Moved Permanently');
 
                // Set correct response status
                $this->setResponseStatus('301 Moved Permanently');