SF.net SVN: postfixadmin:[1637] trunk/functions.inc.php
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2014-02-13 20:11:08
|
Revision: 1637 http://sourceforge.net/p/postfixadmin/code/1637 Author: christian_boltz Date: 2014-02-13 20:11:05 +0000 (Thu, 13 Feb 2014) Log Message: ----------- functions.inc.php: - check_domains(): raise TLD limit to 13 chars - even if I seriously doubt someone wants to use such a long TLD ;-) ( https://sourceforge.net/p/postfixadmin/bugs/310/ again) Modified Paths: -------------- trunk/functions.inc.php Modified: trunk/functions.inc.php =================================================================== --- trunk/functions.inc.php 2014-02-13 19:39:38 UTC (rev 1636) +++ trunk/functions.inc.php 2014-02-13 20:11:05 UTC (rev 1637) @@ -198,7 +198,7 @@ * TODO: skip DNS check if the domain exists in PostfixAdmin? */ function check_domain ($domain) { - if (!preg_match ('/^([-0-9A-Z]+\.)+' . '([0-9A-Z]){2,11}$/i', ($domain))) { + if (!preg_match ('/^([-0-9A-Z]+\.)+' . '([0-9A-Z]){2,13}$/i', ($domain))) { return sprintf(Config::lang('pInvalidDomainRegex'), htmlentities($domain)); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |