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

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 10 14:55:26 UTC 2010


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

Comment(by hakre):

 Replying to [comment:10 Denis-de-Bernardy]:
 > there is one issue with the regexp from is_valid_utf8_preg5998(), since
 the latter lacks delimiters and it could arguably start with "(?:" instead
 of "(" to avoid backtrace issues.

 There is another issue with it, it just does not properly work because PHP
 itself reports problems here on some testcases I've been running:


 {{{Warning: preg_replace() [function.preg-replace]: Compilation failed:
 range out of order in character class at offset 6}}}

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


More information about the wp-trac mailing list