HTML_Quickform Bugfix

From: Date: Thu, 05 Dec 2002 13:56:34 +0000
Subject: HTML_Quickform Bugfix
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11384@lists.php.net to get a copy of this message
The HTML_Quickform $_registeredRules 'email' and 'emailorblank' don't like "info"-Domains at the moment ;-) Index: QuickForm.php =================================================================== RCS file: /repository/pear/HTML_QuickForm/QuickForm.php,v retrieving revision 1.45 diff -r1.45 QuickForm.php 214,215c214,215 < 'email' =>array('regex', '/^.+\@(\[?)[a-zA-Z0-9\-\.]+ \.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/'), < 'emailorblank' =>array('regex', '/(^$)|(^.+\@(\[?)[a-zA-Z0-9 \-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$)/'), --- > 'email' =>array('regex', > '/^.+\@(\[?)[a-zA-Z0-9\-\.]+ \.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/'), > 'emailorblank' =>array('regex', > '/(^$)|(^.+\@(\[?)[a-zA-Z0-9 \-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$)/'), -- http://4bconsult.de

« previous php.pear.dev (#11384) next »