& should not be part of URLs...
[core.git] / inc / classes / main / response / image / class_ImageResponse.php
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('&', '&', $url));
 
                // Set correct response status
                $this->setResponseStatus('301 Moved Permanently');