[wp-trac] [WordPress Trac] #54190: sanitize_file_name allows acute accents and left smart apostrophe

WordPress Trac noreply at wordpress.org
Mon Sep 27 14:23:29 UTC 2021


#54190: sanitize_file_name allows acute accents and left smart apostrophe
--------------------------+-----------------------------
 Reporter:  jdorner       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.8.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The following change to line 1991 of wp-includes/formatting.php will
 disallow acute accents and left smart apostrophe in file names
 $special_chars = array( '?', '[', ']', '/', '\\', '=', '<', '>', ':', ';',
 ',', "'", '"', '&', '$', '#', '*', '(', ')', '|', '~', '`', '´', '!', '{',
 '}', '%', '+', 'ʻ','’', '«', '»', '”', '“', chr( 0 ) );

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54190>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list