parent
39b91684d8
commit
963c3168b1
|
@ -18,7 +18,7 @@ class InternalUrlValidator extends Zend_Validate_Abstract
|
||||||
public function isValid($value)
|
public function isValid($value)
|
||||||
{
|
{
|
||||||
$url = Url::fromPath($value);
|
$url = Url::fromPath($value);
|
||||||
if ($url->getRelativeUrl() === '' || $url->getScheme() !== Icinga::app()->getRequest()->getScheme()) {
|
if ($url->getRelativeUrl() === '' || $url->isExternal()) {
|
||||||
$this->_error('IS_EXTERNAL');
|
$this->_error('IS_EXTERNAL');
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue