mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
parent
1f980f92f2
commit
ef7be98e0c
@ -16,11 +16,13 @@ class InternalUrlValidator extends Zend_Validate_Abstract
|
|||||||
*/
|
*/
|
||||||
public function isValid($value)
|
public function isValid($value)
|
||||||
{
|
{
|
||||||
$isExternal = Url::fromPath($value)->isExternal();
|
if (Url::fromPath($value)->isExternal()) {
|
||||||
if ($isExternal) {
|
|
||||||
$this->_error('IS_EXTERNAL');
|
$this->_error('IS_EXTERNAL');
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return ! $isExternal;
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user