Zend Framework

Locale corruption of Zend_Cache IDs

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.10.3
  • Component/s: Zend_Cache
  • Labels:
    None

Description

Zend_Cache_Core defines a method to validate IDs, stated to match the pattern [a-zA-Z0-9_]. In reality, the regular expression used is [\w]+. While ordinarily this is correct, on a system where PECL has been compiled with additional locales, the \w "word" will match additional locale specific characters. In order to avoid this, the regular expression used should be made explicit to avoid such additional character matches.

Activity

Hide
Pádraic Brady added a comment -

There's a similar misuse in Zend_Cache_Backend_File when checking a filename.

Show
Pádraic Brady added a comment - There's a similar misuse in Zend_Cache_Backend_File when checking a filename.
Hide
Marc Bennewitz (private) added a comment -

fixed in r21221 (trunk) & r21223 (1.10 branch)

Show
Marc Bennewitz (private) added a comment - fixed in r21221 (trunk) & r21223 (1.10 branch)

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: