Web/Response: use & to encode XHR redirection URLs

This commit is contained in:
Thomas Gelf 2014-09-12 09:14:13 +02:00
parent ad53f7ad3d
commit 93777ac15e
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class Response extends Zend_Controller_Response_Http
$url->getParams()->setSeparator('&');
if (Icinga::app()->getFrontController()->getRequest()->isXmlHttpRequest()) {
$this->setHeader('X-Icinga-Redirect', rawurlencode($url));
$this->setHeader('X-Icinga-Redirect', rawurlencode($url->getAbsoluteUrl()));
} else {
$this->setRedirect($url->getAbsoluteUrl());
}