[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:59:11 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:14 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}}}

 Actually that was a typo I made in the code there. Just ignore that error.
 That suggested function needs and update though to fix that problem (start
 of regex was wrongly copied over).

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


More information about the wp-trac mailing list