Author: xavier
Date: 2010-05-19 22:54:41 +0200 (Wed, 19 May 2010)
New Revision: 29538
Modified:
plugins/sfDoctrineShortUrlPlugin/trunk/lib/form/doctrine/PluginsfShortUrlForm.class.php
Log:
[sfDoctrineShortUrlPlugin]: made the short url restrictions stronger
Modified:
plugins/sfDoctrineShortUrlPlugin/trunk/lib/form/doctrine/PluginsfShortUrlForm.class.php
===================================================================
---
plugins/sfDoctrineShortUrlPlugin/trunk/lib/form/doctrine/PluginsfShortUrlForm.class.php
2010-05-19 20:44:48 UTC (rev 29537)
+++
plugins/sfDoctrineShortUrlPlugin/trunk/lib/form/doctrine/PluginsfShortUrlForm.class.php
2010-05-19 20:54:41 UTC (rev 29538)
@@ -56,6 +56,15 @@
array(
'invalid' => 'This shorturl is not allowed.'
)
+ ),
+ new sfValidatorRegex(
+ array(
+ 'pattern' => '~^([A-Za-z0-9_-\s]+)$~ix',
+ 'must_match' => true
+ ),
+ array(
+ 'invalid' => 'This shorturl is not allowed.'
+ )
)
),
array('required' => false)
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.