Issue Bug Closed

#77516verifyFilenameAgainstDenyPattern not UTF-8 save

Tim Spiekerkötter 08/16/16, 12:22 updated 12/07/16, 15:38

Description

I found a problem in verifyFilenameAgainstDenyPattern while using Helmut’s upload_example extension.

When a user tries to upload a file named “Zdjęcie 10.jpg”, the method verifyFilenameAgainstDenyPattern returns FALSE even though there are no control characters within the filename. The preg_match call in the method is missing the “u” modifier.

Am I missing something or are there any reasons for this behaviour?

This happens only on the live server (Mittwald PHP 5.6.10), and I can’t reproduce this behaviour on my local dev system.

Reviews 1