Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mattia Rizzolo
ISPConfig 3
Commits
894d9c58
Commit
894d9c58
authored
Mar 16, 2022
by
Thom
🛠
Browse files
Change regex to allow ' (#6270)
parent
8bb306ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/web/mail/form/mail_user_filter.tform.php
View file @
894d9c58
...
...
@@ -121,7 +121,7 @@ $form["tabs"]['filter'] = array (
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'TEXT'
,
'validators'
=>
array
(
0
=>
array
(
'type'
=>
'REGEX'
,
'regex'
=>
'/^[\p{Latin}0-9\.\-\_\ \&\/]{0,100}$/u'
,
'regex'
=>
'/^[\p{Latin}0-9\.\
'\
-\_\ \&\/]{0,100}$/u'
,
'errmsg'
=>
'target_error_regex'
),
),
'default'
=>
''
,
...
...
interface/web/mailuser/form/mail_user_filter.tform.php
View file @
894d9c58
...
...
@@ -94,7 +94,6 @@ $form["tabs"]['filter'] = array (
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'SELECT'
,
'default'
=>
''
,
//'value' => array('contains'=>'contains_txt','is' => 'Is','begins'=>'Begins with','ends'=>'Ends with')
'value'
=>
array
(
'contains'
=>
'contains_txt'
,
'is'
=>
'is_txt'
,
'begins'
=>
'begins_with_txt'
,
'ends'
=>
'ends_with_txt'
,
'regex'
=>
'regex_txt'
,
'localpart'
=>
'localpart_txt'
,
'domain'
=>
'domain_txt'
)
),
'searchterm'
=>
array
(
...
...
@@ -122,7 +121,7 @@ $form["tabs"]['filter'] = array (
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'TEXT'
,
'validators'
=>
array
(
0
=>
array
(
'type'
=>
'REGEX'
,
'regex'
=>
'/^[\p{Latin}0-9\.\-\_\ \&\/]{0,100}$/u'
,
'regex'
=>
'/^[\p{Latin}0-9\.\
'\
-\_\ \&\/]{0,100}$/u'
,
'errmsg'
=>
'target_error_regex'
),
),
'default'
=>
''
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment