Web/Response: use & to encode XHR redirection URLs
This commit is contained in:
parent
ad53f7ad3d
commit
93777ac15e
|
@ -17,7 +17,7 @@ class Response extends Zend_Controller_Response_Http
|
||||||
$url->getParams()->setSeparator('&');
|
$url->getParams()->setSeparator('&');
|
||||||
|
|
||||||
if (Icinga::app()->getFrontController()->getRequest()->isXmlHttpRequest()) {
|
if (Icinga::app()->getFrontController()->getRequest()->isXmlHttpRequest()) {
|
||||||
$this->setHeader('X-Icinga-Redirect', rawurlencode($url));
|
$this->setHeader('X-Icinga-Redirect', rawurlencode($url->getAbsoluteUrl()));
|
||||||
} else {
|
} else {
|
||||||
$this->setRedirect($url->getAbsoluteUrl());
|
$this->setRedirect($url->getAbsoluteUrl());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue