zend-escaper icon indicating copy to clipboard operation
zend-escaper copied to clipboard

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

Open GeeH opened this issue 9 years ago • 1 comments

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 [email protected] 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.


GeeH avatar Jun 28 '16 13:06 GeeH

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.

weierophinney avatar Dec 31 '19 21:12 weierophinney