ZF-9084: Regex in _validateScreenName allows 20 characters

Issue Type: Bug Created: 2010-02-04T10:05:01.000+0000 Last Updated: 2010-10-27T07:04:01.000+0000 Status: Resolved Fix version(s): - 1.11.1 (30/Nov/10)

Reporter: Raphael Stolt (raphael.stolt) Assignee: Marc Hodgins (mjh_ca) Tags: - Zend_Service_Twitter

Related issues: Attachments: - ZF-9084.patch


Shouldn't the regex used in the validateScreenName method not be '/^[a-zA-Z0-9]{0,15}$/' instead of '/^[a-zA-Z0-9_]{0,20}$/' as the follow-up Exception message indicates?


Posted by Marc Hodgins (mjh_ca) on 2010-10-26T02:24:39.000+0000

Yes, Twitter usernames are limited to 15 chars. Updated the regex in attached patch.

Posted by Matthew Weier O'Phinney (matthew) on 2010-10-27T07:03:59.000+0000

Patch applied to trunk and 1.11 release branch -- will release with 1.11.1.

Have you found an issue?

See the Overview section for more details.


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

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