cvs: pear /HTML_QuickForm QuickForm.php

From: Date: Tue, 15 Jan 2002 15:52:39 +0000
Subject: cvs: pear /HTML_QuickForm QuickForm.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1966@lists.php.net to get a copy of this message
mansion Tue Jan 15 10:52:39 2002 EDT Modified files: /pear/HTML_QuickForm QuickForm.php Log: Fixes in regex. Index: pear/HTML_QuickForm/QuickForm.php diff -u pear/HTML_QuickForm/QuickForm.php:1.9 pear/HTML_QuickForm/QuickForm.php:1.10 --- pear/HTML_QuickForm/QuickForm.php:1.9 Tue Dec 11 14:45:45 2001 +++ pear/HTML_QuickForm/QuickForm.php Tue Jan 15 10:52:39 2002 @@ -17,7 +17,7 @@ // | Bertrand Mansion <bmansion@mamasam.com> | // +----------------------------------------------------------------------+ // -// $Id: QuickForm.php,v 1.9 2001/12/11 19:45:45 sebastian Exp $ +// $Id: QuickForm.php,v 1.10 2002/01/15 15:52:39 mansion Exp $ require_once("PEAR.php"); require_once("HTML/Common.php"); @@ -198,8 +198,8 @@ 'rangelength' =>array('regex', '/^(\s|\S){%data%}$/'), 'regex' =>array('regex', '%data%'), 'email' =>array('regex', '/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/'), - 'lettersonly' =>array('regex', '^[a-zA-Z]*$'), - 'alphanumeric' =>array('regex', '^[a-zA-Z0-9]*$'), + 'lettersonly' =>array('regex', '/^[a-zA-Z]*$/'), + 'alphanumeric' =>array('regex', '/^[a-zA-Z0-9]*$/'), 'uploadedfile' =>array('function', '_isUploadedFile'), 'maxfilesize' =>array('function', '_checkMaxFileSize'), 'mimetype' =>array('function', '_checkMimeType'),

« previous php.pear.cvs (#1966) next »