Skip to content

Commit fb928bc

Browse files
committed
Fixed: FS#1725 - Website Redirect not accepting some characters
1 parent 8e9a5fd commit fb928bc

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
@@ -236,7 +236,7 @@
236236
'redirect_path' => array (
237237
'datatype' => 'VARCHAR',
238238
'validators' => array ( 0 => array ( 'type' => 'REGEX',
239-
'regex' => '@^(([.]{0})|(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.\,\-\+\?]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@',
239+
'regex' => '@^(([.]{0})|(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.\,\-\+\?\~]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@',
240240
'errmsg'=> 'redirect_error_regex'),
241241
),
242242
'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)