#23762 [NEW]: QuickForm "nonzero" validation regex is wrong

From: Date: Thu, 22 May 2003 21:20:47 +0000
Subject: #23762 [NEW]: QuickForm "nonzero" validation regex is wrong
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16628@lists.php.net to get a copy of this message
From: web-php-bugs at sklar dot com Operating system: Linux PHP version: 5CVS-2003-05-22 (dev) PHP Bug Type: PEAR related Bug description: QuickForm "nonzero" validation regex is wrong The "nonzero" validation rule in QuickForm.php matches input to the regex "^[1-9][0-9]+". This only allows positive numbers >= 10. It should be "^[1-9][0-9]*" to allow positive numbers starting with 1. For that matter, it should be "^-?[1-9][0-9]*" to allow negative numbers, too. -- Edit bug report at http://bugs.php.net/?id=23762&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23762&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23762&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23762&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23762&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23762&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23762&r=support Expected behavior: http://bugs.php.net/fix.php?id=23762&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23762&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23762&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23762&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23762&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23762&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23762&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23762&r=gnused

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