SF.net SVN: postfixadmin: [214] trunk/functions.inc.php
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2007-11-12 01:25:57
|
Revision: 214 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=214&view=rev Author: christian_boltz Date: 2007-11-11 17:26:01 -0800 (Sun, 11 Nov 2007) Log Message: ----------- functions.inc.php - allow longer TLDs (.museum, .travel) Modified Paths: -------------- trunk/functions.inc.php Modified: trunk/functions.inc.php =================================================================== --- trunk/functions.inc.php 2007-11-12 00:46:52 UTC (rev 213) +++ trunk/functions.inc.php 2007-11-12 01:26:01 UTC (rev 214) @@ -194,7 +194,7 @@ // TODO: make check_domain able to handle as example .local domains function check_domain ($domain) { - if (preg_match ('/([-0-9A-Z]+\.)+' . '([0-9A-Z]){2,4}$/i', trim ($domain))) + if (preg_match ('/([-0-9A-Z]+\.)+' . '([0-9A-Z]){2,6}$/i', trim ($domain))) { return true; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |