- fixing domain validation

- added validation for local hosts (mysql-hosts)
This commit is contained in:
Michael Kaufmann (d00p)
2010-04-12 16:36:09 +00:00
parent 209ab4dff9
commit ae27e06675
2 changed files with 20 additions and 9 deletions

View File

@@ -25,6 +25,7 @@ function checkMysqlAccessHost($fieldname, $fielddata, $newfieldvalue, $allnewfie
{
if(validate_ip($host_entry, true) == false
&& validateDomain($host_entry) == false
&& validateLocalHostname($host_entry) == false
&& $host_entry != '%')
{
return array(FORMFIELDS_PLAUSIBILITY_CHECK_ERROR, 'invalidmysqlhost', $host_entry);