diff --git a/includes/formatting.php b/includes/formatting.php index 56e2ae4e..0880e47d 100644 --- a/includes/formatting.php +++ b/includes/formatting.php @@ -339,6 +339,8 @@ function wpcf7_is_email_in_site_domain( $email ) { function wpcf7_antiscript_file_name( $filename ) { $filename = wp_basename( $filename ); + $filename = preg_replace( '/[\pC\pZ]+/i', '', $filename ); + $parts = explode( '.', $filename ); if ( count( $parts ) < 2 ) {