Problem/Motivation

Hello, I've found bug in file component. File type validation fails on file names ending with diacritics (czech characters like žščř).

Proposed resolution

I fixed it using instead of strrpos() use mb_strrpos().
I created a patch.

Remaining tasks

reviews needed

CommentFileSizeAuthor
#1 webform_file_strrpos.patch633 bytesquicksketch
file.inc_.php_.patch609 bytesstrndy

Comments

quicksketch’s picture

Title: diacritics in filename fails validation and solution » Diacritics in filename fails validation
Status: Needs review » Fixed
StatusFileSize
new633 bytes

Thanks, I've committed this fix based on your suggestion.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.