zendframework / zend-escaper

Escaper component from Zend Framework
BSD 3-Clause "New" or "Revised" License
332 stars 30 forks source link

Escaper should use [:alnum:] instead [a-z0-9] #18

Open GeeH opened 8 years ago

GeeH commented 8 years ago

This issue has been moved from the zendframework repository as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html


Original Issue: https://api.github.com/repos/zendframework/zendframework/issues/7550 User: @phpManiac77 Created On: 2015-05-25T13:32:36Z Updated At: 2015-11-06T21:53:56Z Body Method Zend\Escaper\Escaper::escapeHtmlAttr() should use [:alnum:] in the regular expression. So it would also work with chinese characters correctly.


Comment

User: @Ocramius Created On: 2015-05-25T13:41:43Z Updated At: 2015-05-25T13:41:43Z Body Any non-ascii characters are supposed to be encoded anyway.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

On 25 May 2015 at 14:32, phpManiac77 notifications@github.com wrote:

Method Zend\Escaper\Escaper::escapeHtmlAttr() should use [:alnum:] in the regular expression. So it would also work with chinese characters correctly

— Reply to this email directly or view it on GitHub https://github.com/zendframework/zf2/issues/7550.


weierophinney commented 4 years ago

This repository has been closed and moved to laminas/laminas-escaper; a new issue has been opened at https://github.com/laminas/laminas-escaper/issues/4.