From: Roland Häder Date: Fri, 21 Aug 2009 18:14:26 +0000 (+0000) Subject: & should not be part of URLs... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=495c78d789898bf419094ace30a1a3ba5c33a2f3;p=core.git & should not be part of URLs... --- diff --git a/inc/classes/main/response/http/class_HttpResponse.php b/inc/classes/main/response/http/class_HttpResponse.php index 5822f1ef..9b7a089c 100644 --- a/inc/classes/main/response/http/class_HttpResponse.php +++ b/inc/classes/main/response/http/class_HttpResponse.php @@ -152,7 +152,7 @@ class HttpResponse extends BaseResponse implements Responseable { } // END - if // Add redirect header - $this->addHeader('Location', $url); + $this->addHeader('Location', str_replace('&', '&', $url)); // Set correct response status $this->setResponseStatus('301 Moved Permanently'); diff --git a/inc/classes/main/response/image/class_ImageResponse.php b/inc/classes/main/response/image/class_ImageResponse.php index a496d3f4..bcf0c157 100644 --- a/inc/classes/main/response/image/class_ImageResponse.php +++ b/inc/classes/main/response/image/class_ImageResponse.php @@ -166,7 +166,7 @@ class ImageResponse extends BaseResponse implements Responseable { } // END - if // Add redirect header - $this->addHeader('Location', $url); + $this->addHeader('Location', str_replace('&', '&', $url)); // Set correct response status $this->setResponseStatus('301 Moved Permanently');