Skip to content

Commit 33aaf12

Browse files
author
thom
committed
Don't allow spaces (#3443)
1 parent ca5966f commit 33aaf12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/web/admin/form/firewall.tform.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
'datatype' => 'VARCHAR',
7777
'formtype' => 'TEXT',
7878
'validators' => array ( 0 => array ( 'type' => 'REGEX',
79-
'regex' => '/^[\s0-9\,\:]{0,255}$/',
79+
'regex' => '/^[0-9\,\:]{0,255}$/',
8080
'errmsg'=> 'tcp_ports_error_regex'),
8181
),
8282
'default' => '20,21,22,25,53,80,110,143,443,465,587,993,995,3306,8080,8081,10000',
@@ -88,7 +88,7 @@
8888
'datatype' => 'VARCHAR',
8989
'formtype' => 'TEXT',
9090
'validators' => array ( 0 => array ( 'type' => 'REGEX',
91-
'regex' => '/^[\s0-9\,\:]{0,255}$/',
91+
'regex' => '/^[0-9\,\:]{0,255}$/',
9292
'errmsg'=> 'tcp_ports_error_regex'),
9393
),
9494
'default' => '53,3306',

0 commit comments

Comments
 (0)