checking the subdomain syntax using checkfqdn instead of this crappy regexp (who miss ^ and $...). Normally Fixes #1037

This commit is contained in:
Benjamin Sonntag 2007-08-27 06:55:03 +00:00
parent a2ae073b0c
commit b851385d72
2 changed files with 3 additions and 2 deletions

View File

@ -634,7 +634,8 @@ class m_dom {
$dom=strtolower($dom);
$sub=strtolower($sub);
if (!(($sub == '*') || ($sub=="") || (preg_match('/([a-z0-9][\.\-a-z0-9]*)?[a-z0-9]/', $sub)))) {
// if (!(($sub == '*') || ($sub=="") || (preg_match('/([a-z0-9][\.\-a-z0-9]*)?[a-z0-9]/', $sub)))) {
if (($sub != '*') && checkfqdn($sub)) {
$err->raise("dom",24);
return false;
}

View File

@ -324,7 +324,7 @@ msgid "err_err_0"
msgstr "OK"
msgid "err_err_1"
msgstr "The error message does not exists (%s)"
msgstr "The error message does not exist (%s)"
msgid "the %3$d-%2$d-%1$d at %4$d:%5$d"
msgstr "%3$d/%1$d/%2$d, at %6$d:%5$d %7$s"