Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -68,7 +68,7 @@ class _Url extends Text
|
||||
}
|
||||
|
||||
/* And that it's an allowed protocol */
|
||||
if ( !in_array( mb_strtolower( $value->data['scheme'] ), $this->options['allowedProtocols'] ) )
|
||||
if ( $this->options['allowedProtocols'] and !in_array( mb_strtolower( $value->data['scheme'] ), $this->options['allowedProtocols'] ) )
|
||||
{
|
||||
throw new \DomainException('form_url_bad_protocol');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user