mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
parent
a31c799043
commit
91720810cc
@ -28,10 +28,15 @@ class Response extends Zend_Controller_Response_Http
|
|||||||
return $this->request;
|
return $this->request;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Redirect to the given URL and exit immediately
|
||||||
|
*
|
||||||
|
* @param string|Url $url
|
||||||
|
*/
|
||||||
public function redirectAndExit($url)
|
public function redirectAndExit($url)
|
||||||
{
|
{
|
||||||
if (! $url instanceof Url) {
|
if (! $url instanceof Url) {
|
||||||
$url = Url::fromPath($url);
|
$url = Url::fromPath((string) $url);
|
||||||
}
|
}
|
||||||
$url->getParams()->setSeparator('&');
|
$url->getParams()->setSeparator('&');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user