[wolfcms] r349 committed - Fixed small bug in Validate Helper's postcode validation.

1 view
Skip to first unread message

wol...@googlecode.com

unread,
Dec 11, 2010, 2:36:52 PM12/11/10
to wolfcms...@googlegroups.com
Revision: 349
Author: martij...@gmail.com
Date: Sat Dec 11 11:36:07 2010
Log: Fixed small bug in Validate Helper's postcode validation.
http://code.google.com/p/wolfcms/source/detail?r=349

Modified:
/trunk/wolf/helpers/Validate.php

=======================================
--- /trunk/wolf/helpers/Validate.php Mon Nov 29 10:34:32 2010
+++ /trunk/wolf/helpers/Validate.php Sat Dec 11 11:36:07 2010
@@ -839,7 +839,7 @@
'yt' => '976\d{2}'
);

- if (!preg_match($format[$territory], $postcode)) {
+ if (!preg_match('/'.$formats[$territory].'/', $postcode)) {
return false;
}

Reply all
Reply to author
Forward
0 new messages