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