Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISPConfig
ISPConfig 3
Commits
2f781af5
Commit
2f781af5
authored
Sep 26, 2016
by
Till Brehm
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'stable-3.1' of git.ispconfig.org:ispconfig/ispconfig3 into stable-3.1
parents
7c3b89df
33f97321
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
server/plugins-available/mysql_clientdb_plugin.inc.php
server/plugins-available/mysql_clientdb_plugin.inc.php
+2
-0
No files found.
server/plugins-available/mysql_clientdb_plugin.inc.php
View file @
2f781af5
...
...
@@ -105,6 +105,8 @@ class mysql_clientdb_plugin {
$valid
=
true
;
if
(
$db_host
==
'%'
||
$db_host
==
'localhost'
)
{
$valid
=
true
;
}
elseif
(
function_exists
(
'filter_var'
))
{
if
(
!
filter_var
(
$db_host
,
FILTER_VALIDATE_IP
))
$valid
=
false
;
}
elseif
(
preg_match
(
"/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)
\\
.)
{
3
}
(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/"
,
$db_host
))
{
$groups
=
explode
(
'.'
,
$db_host
);
foreach
(
$groups
as
$group
){
...
...
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