You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found out that for filter { title: 'Image files', extensions: 'jpg,gif,png,jpeg' } user can upload file with "wrong" extension, for example next one "example.jpg2000" , but it should be ignored because extension ".jpg2000" is not included in filter. So, I've made some investigation and found following code:
I've found out that for filter { title: 'Image files', extensions: 'jpg,gif,png,jpeg' } user can upload file with "wrong" extension, for example next one "example.jpg2000" , but it should be ignored because extension ".jpg2000" is not included in filter. So, I've made some investigation and found following code:
The code produces following regular expression: /.jpg|.gif|.png|.jpeg$/i , but in my opinion it should be /.jpg$|.gif$|.png$|.jpeg$/i.
So to fix this bug I suggest to replace this string:
by
Thanks,
Artem
The text was updated successfully, but these errors were encountered: