Merge branch 'thms0-stable-3.1' into stable-3.1

(cname with empty "sub-domain" check patch)
This commit is contained in:
Dominique Rousseau 2016-12-08 18:39:33 +01:00
commit 77a7849119
1 changed files with 4 additions and 0 deletions

View File

@ -1353,6 +1353,10 @@ class m_dom {
}
}
// Forbidden to create a CNAME RR on the domain APEX (RFC 1912)
if ($type == 'cname' && $sub == '')
return false;
// All is right, go ! Create ur domain !
return true;
}