mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
More IPv6 friendly function conversions
This commit is contained in:
@@ -10,8 +10,8 @@ $p = $in{'proto'};
|
||||
|
||||
# Parse inputs
|
||||
if ($p eq 'mysql' || $p eq 'postgresql' || $p eq 'ldap') {
|
||||
gethostbyname($in{$p."_host"}) ||
|
||||
$in{$p."_host"} =~ /^(\S+):(\d+)$/ && gethostbyname($1) ||
|
||||
&to_ipaddress($in{$p."_host"}) ||
|
||||
$in{$p."_host"} =~ /^(\S+):(\d+)$/ && &to_ipaddress("$1") ||
|
||||
&error($text{'sql_ehost'});
|
||||
$in{$p."_user"} =~ /^\S+$/ || &error($text{'sql_euser'});
|
||||
$in{$p."_pass"} =~ /^\S*$/ || &error($text{'sql_epass'});
|
||||
|
||||
Reference in New Issue
Block a user