Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Vítězslav Dvořák
ISPConfig 3
Commits
18bdde00
Commit
18bdde00
authored
Sep 16, 2020
by
Marius Burkard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed using empty regex
parent
e2968df7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
interface/lib/classes/validate_domain.inc.php
interface/lib/classes/validate_domain.inc.php
+3
-0
No files found.
interface/lib/classes/validate_domain.inc.php
View file @
18bdde00
...
...
@@ -135,6 +135,9 @@ class validate_domain {
foreach
(
$directives
as
$directive
)
{
$directive
=
trim
(
$directive
);
foreach
(
$regex
as
$r
)
{
if
(
trim
(
$r
)
==
''
)
{
continue
;
}
if
(
preg_match
(
trim
(
$r
),
$directive
))
{
$blocked
=
true
;
$blocked_line
.
=
$directive
.
'<br />'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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