cvs: pear /HTML_QuickForm/QuickForm file.php

From: Date: Fri, 05 Oct 2007 10:17:55 +0000
Subject: cvs: pear /HTML_QuickForm/QuickForm file.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-48749@lists.php.net to get a copy of this message
avb Fri Oct 5 10:17:55 2007 UTC Modified files: /pear/HTML_QuickForm/QuickForm file.php Log: 'filename' rule should return bool, not integer as preg_match() does (bug #12015) http://cvs.php.net/viewvc.cgi/pear/HTML_QuickForm/QuickForm/file.php?r1=1.23&r2=1.24&diff_format=u Index: pear/HTML_QuickForm/QuickForm/file.php diff -u pear/HTML_QuickForm/QuickForm/file.php:1.23 pear/HTML_QuickForm/QuickForm/file.php:1.24 --- pear/HTML_QuickForm/QuickForm/file.php:1.23 Tue May 29 18:34:36 2007 +++ pear/HTML_QuickForm/QuickForm/file.php Fri Oct 5 10:17:55 2007 @@ -19,7 +19,7 @@ * @author Alexey Borzov <avb@php.net> * @copyright 2001-2007 The PHP Group * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version CVS: $Id: file.php,v 1.23 2007/05/29 18:34:36 avb Exp $ + * @version CVS: $Id: file.php,v 1.24 2007/10/05 10:17:55 avb Exp $ * @link http://pear.php.net/package/HTML_QuickForm */ @@ -307,7 +307,7 @@ if (!HTML_QuickForm_file::_ruleIsUploadedFile($elementValue)) { return true; } - return preg_match($regex, $elementValue['name']); + return (bool)preg_match($regex, $elementValue['name']); } // end func _ruleCheckFileName // }}}

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