ZF2-138: CLONE - Limit the character set of cache ID in _validateIdOrTag

Issue Type: Bug Created: 2012-01-09T20:05:53.000+0000 Last Updated: 2012-01-09T20:09:09.000+0000 Status: Closed Fix version(s): Reporter: Marc Bennewitz (private) (mabe) Assignee: Marc Bennewitz (private) (mabe) Tags: - Zend\Cache

Related issues: Attachments:


There is no need to limit the character set to "[a-zA-Z0-9_]" in Zend_Cache_Core::_validateIdOrTag while using Memcached server as a Backend. It DOES accept characters like "-", "!" , ":" etc.


Posted by Marc Bennewitz (private) (mabe) on 2012-01-09T20:09:09.000+0000

Cloned from ZF-10446 and fixed in ZF2 by design.

Now validating will be performed on adapter level and adapters like memcached don't validate the ids (now named keys).

Have you found an issue?

See the Overview section for more details.


© 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.