CF 7 BugHunt
Add and View Bug Comments at the bottom of the Element.
cfform time validation regexp traps 20:00 as bad
Philadelphia Pennsylvania CFUG
Generates an Error
Description of bug:
The regexp around line 492 in cfform.js is wrong for time validation. Original: var result = _CF_checkregex(object_value, /^(([0-1]?[0-9]|[1-4]):([0-5]?[0-9])(:[0-5]?[0-9])?).?([AP]M|[AP]m|[ap]m|[ap]M)?$/, required); Fixed: var result = _CF_checkregex(object_value, /^(([0-1]?[0-9]|[0-3]):([0-5]?[0-9])(:[0-5]?[0-9])?).?([AP]M|[AP]m|[ap]m|[ap]M)?$/, required); Notice the 2[1-4] that changes to 2[0-3]. The former traps 20:00 through 20:59 as invalid times. CF was notified, the fix should be in CF8 but is not fixed in 7.0 as of 7.0.2. Listed as CF8 bug 62379
A D D Y O U R C O M M E N T S T O T H I S B U G
Please login to add comments to a bug
C O M M E N T S
Comment display is being revamped. We apologize for the delay.
[Joe Gooch] [Monday, Jun 11, 2007 05:48 PM]
Fixed in Scorpio public beta
Sponsored by TeraTech - © 2003-2018