WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #15955, comment 34


Ignore:
Timestamp:
01/08/2016 10:30:21 AM (4 years ago)
Author:
oekarlsson
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15955, comment 34

    initial v1  
    1 I have tried this patch on IIS8.5, PHP 7.01 and a multisite WordPress installation. It doesn't work as expected. The sanitize_file_name function that receives the reencoded filename from this code returns an empty string. I can make it all work if I comment out this line from the sanitize_file_name function:
     1I have tried the latest code in this ticket on IIS8.5, PHP 7.01 and a multisite WordPress installation. It doesn't work as expected. The sanitize_file_name function that receives the reencoded filename from this code returns an empty string. I can make it all work if I comment out this line from the sanitize_file_name function:
    22
    33$filename = preg_replace( "#\x{00a0}#siu", ' ', $filename );