[wp-trac] [WordPress Trac] #11738: sanitize_text_field() issue with UTF-8 characters

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 6 12:25:44 UTC 2010

#11738: sanitize_text_field() issue with UTF-8 characters
 Reporter:  hakre         |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  2.9.2      
Component:  General       |     Version:  2.9.1      
 Severity:  normal        |    Keywords:  needs-patch

Comment(by Denis-de-Bernardy):

 per the php doc:


 > u (PCRE8)
 > This modifier turns on additional functionality of PCRE that is
 incompatible with Perl. Pattern strings are treated as UTF-8. This
 modifier is available from PHP 4.1.0 or greater on Unix and from PHP 4.2.3
 on win32. UTF-8 validity of the pattern is checked since PHP 4.3.5.

 So it's available all the time given the current requirements. And we'd
 even get validity if we bump the requirement to php 4.3.5 or php 4.4.

Ticket URL: <http://core.trac.wordpress.org/ticket/11738#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list