Skip to content

Commit e9e224a

Browse files
committed
Improved regular expressions for website ssl tab.
1 parent 0641b18 commit e9e224a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

interface/web/sites/form/web_domain.tform.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
252252
'datatype' => 'VARCHAR',
253253
'formtype' => 'TEXT',
254254
'validators' => array ( 0 => array ( 'type' => 'REGEX',
255-
'regex' => '/^[a-zA-Z0-9\ \.\-\_\,]{1,255}$/',
255+
'regex' => '/^(([.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/',
256256
'errmsg'=> 'ssl_state_error_regex'),
257257
),
258258
'default' => '',
@@ -264,7 +264,7 @@
264264
'datatype' => 'VARCHAR',
265265
'formtype' => 'TEXT',
266266
'validators' => array ( 0 => array ( 'type' => 'REGEX',
267-
'regex' => '/^[a-zA-Z0-9\ \.\-\_\,]{1,255}$/',
267+
'regex' => '/^(([.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/',
268268
'errmsg'=> 'ssl_locality_error_regex'),
269269
),
270270
'default' => '',
@@ -276,7 +276,7 @@
276276
'datatype' => 'VARCHAR',
277277
'formtype' => 'TEXT',
278278
'validators' => array ( 0 => array ( 'type' => 'REGEX',
279-
'regex' => '/^[a-zA-Z0-9\ \.\-\_\,]{1,255}$/',
279+
'regex' => '/^(([.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/',
280280
'errmsg'=> 'ssl_organisation_error_regex'),
281281
),
282282
'default' => '',
@@ -288,7 +288,7 @@
288288
'datatype' => 'VARCHAR',
289289
'formtype' => 'TEXT',
290290
'validators' => array ( 0 => array ( 'type' => 'REGEX',
291-
'regex' => '/^[a-zA-Z0-9\ \.\-\_\,]{1,255}$/',
291+
'regex' => '/^(([.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/',
292292
'errmsg'=> 'ssl_organistaion_unit_error_regex'),
293293
),
294294
'default' => '',
@@ -300,7 +300,7 @@
300300
'datatype' => 'VARCHAR',
301301
'formtype' => 'TEXT',
302302
'validators' => array ( 0 => array ( 'type' => 'REGEX',
303-
'regex' => '/^[A-Z]{2,2}$/',
303+
'regex' => '/^(([.]{0})|([A-Z]{2,2}))$/',
304304
'errmsg'=> 'ssl_country_error_regex'),
305305
),
306306
'default' => '',

0 commit comments

Comments
 (0)