Skip to content

Commit 0641b18

Browse files
committed
Improved URL regex.
1 parent 61c7726 commit 0641b18

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
'datatype' => 'VARCHAR',
113113
'formtype' => 'TEXT',
114114
'validators' => array ( 0 => array ( 'type' => 'REGEX',
115-
'regex' => '@^(([.]{0})|(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@',
115+
'regex' => '@^(([.]{0})|(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.\-\,]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@',
116116
'errmsg'=> 'redirect_error_regex'),
117117
),
118118
'default' => '',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@
224224
'redirect_path' => array (
225225
'datatype' => 'VARCHAR',
226226
'validators' => array ( 0 => array ( 'type' => 'REGEX',
227-
'regex' => '@^(([.]{0})|(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@',
227+
'regex' => '@^(([.]{0})|(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.\,\-]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@',
228228
'errmsg'=> 'redirect_error_regex'),
229229
),
230230
'formtype' => 'TEXT',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
'datatype' => 'VARCHAR',
113113
'formtype' => 'TEXT',
114114
'validators' => array ( 0 => array ( 'type' => 'REGEX',
115-
'regex' => '@^(([.]{0})|(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@',
115+
'regex' => '@^(([.]{0})|(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.\-\,]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@',
116116
'errmsg'=> 'redirect_error_regex'),
117117
),
118118
'default' => '',

0 commit comments

Comments
 (0)