We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 945397f commit 341d2b1Copy full SHA for 341d2b1
1 file changed
server/plugins-available/mysql_clientdb_plugin.inc.php
@@ -85,7 +85,9 @@ function process_host_list($action, $database_name, $database_user, $database_pa
85
86
// check if entry is valid ip address
87
$valid = true;
88
- if(preg_match("/^[0-9]{1,3}(\.)[0-9]{1,3}(\.)[0-9]{1,3}(\.)[0-9]{1,3}$/", $db_host)) {
+ if($db_host == "%") {
89
+ $valid = true;
90
+ } elseif(preg_match("/^[0-9]{1,3}(\.)[0-9]{1,3}(\.)[0-9]{1,3}(\.)[0-9]{1,3}$/", $db_host)) {
91
$groups = explode(".", $db_host);
92
foreach($groups as $group){
93
if($group<0 OR $group>255)
0 commit comments