Re: [SMARTY-CVS] cvs: smarty / NEWS /plugins function.html_select_date.php
| From: | Andrei Zmievski | Date: | Sat, 13 Apr 2002 16:49:39 +0000 |
| Subject: | Re: [SMARTY-CVS] cvs: smarty / NEWS /plugins function.html_select_date.php | ||
| References: | 1 | Groups: | php.smarty.cvs |
| Request: | Send a blank email to php-smarty-cvs+get-52@lists.php.net to get a copy of this message | ||
At 04:15 PM 4/13/02 +0000, Monte Ohrt wrote:
+ // If $time is not in format yyyy-mm-dd
+ if (!preg_match('/\d{4}-\d{2}-\d{2}/', $time)) {
This should actually be enclosed with ^ and $ to make sure you are matching the whole string.
-Andrei