checking the subdomain syntax using checkfqdn instead of this crappy regexp (who miss ^ and $...). Normally Fixes #1037
This commit is contained in:
parent
a2ae073b0c
commit
b851385d72
|
@ -634,7 +634,8 @@ class m_dom {
|
||||||
$dom=strtolower($dom);
|
$dom=strtolower($dom);
|
||||||
$sub=strtolower($sub);
|
$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);
|
$err->raise("dom",24);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -324,7 +324,7 @@ msgid "err_err_0"
|
||||||
msgstr "OK"
|
msgstr "OK"
|
||||||
|
|
||||||
msgid "err_err_1"
|
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"
|
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"
|
msgstr "%3$d/%1$d/%2$d, at %6$d:%5$d %7$s"
|
||||||
|
|
Loading…
Reference in New Issue