diff --git a/lib/Froxlor/Validate/Check.php b/lib/Froxlor/Validate/Check.php index d5c1400f..01d627c4 100644 --- a/lib/Froxlor/Validate/Check.php +++ b/lib/Froxlor/Validate/Check.php @@ -74,7 +74,7 @@ class Check public static function checkMysqlAccessHost($fieldname, $fielddata, $newfieldvalue, $allnewfieldvalues) { - $mysql_access_host_array = array_map('trim', explode(',', $newfieldvalue)); + $mysql_access_host_array = array_unique(array_map('trim', explode(',', $newfieldvalue))); foreach ($mysql_access_host_array as $host_entry) { if (Validate::validate_ip2($host_entry, true, 'invalidip', true, true, true, true, false) == false && Validate::validateDomain($host_entry) == false && Validate::validateLocalHostname($host_entry) == false && $host_entry != '%') {