IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
1772 | 1772 | * @param string $filename Sanitized filename. |
1773 | 1773 | * @param string $filename_raw The filename prior to sanitization. |
1774 | 1774 | */ |
1775 | | return apply_filters( 'sanitize_file_name', $filename, $filename_raw ); |
| 1775 | return apply_filters( 'sanitize_file_name', preg_replace( "/[^a-z0-9\-.]/", "", $filename ), $filename_raw ); |
1776 | 1776 | } |
1777 | 1777 | |
1778 | 1778 | // Process multiple extensions |
… |
… |
|
1802 | 1802 | } |
1803 | 1803 | $filename .= '.' . $extension; |
1804 | 1804 | /** This filter is documented in wp-includes/formatting.php */ |
1805 | | return apply_filters('sanitize_file_name', $filename, $filename_raw); |
| 1805 | return apply_filters( 'sanitize_file_name', preg_replace( "/[^a-z0-9\-.]/", "", $filename ), $filename_raw ); |
1806 | 1806 | } |
1807 | 1807 | |
1808 | 1808 | /** |