Issues

ZF-8645: Newlines allowed by regular expression - Zend_Validate_Sitemap

Issue Type: Bug Created: 2009-12-27T13:03:31.000+0000 Last Updated: 2010-01-02T08:28:30.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Pádraic Brady (padraic) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: Attachments:

Description

Regular expressons in the following classed validate values which include a trailing newline:

Zend_Validate_Sitemap_Lastmod

<pre class="highlight">require_once 'Zend/Validate/Sitemap/Lastmod.php';
$v = new Zend_Validate_Sitemap_Lastmod;
var_dump($v->isValid("1994-11-05T08:15:30-05:00\n")); // TRUE

Comments

Posted by Thomas Weidner (thomas) on 2010-01-02T08:28:30.000+0000

Fixed with r20034

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts