Replies: 1 comment
-
That line is very old (over 12 years, so I assume it was there from the beginning): https://github.com/joomla/joomla-cms/blame/8025827bf07e5b886906b3796cb9ca6e31243011/administrator/components/com_media/helpers/media.php#L118 So probably it is a matter of "it was alway there, so don't touch it". The length limitation could have been for performance reasons on large files. If you have a good validation, feel free to make a PR! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Steps to reproduce the issue
Look at code: libraries/Helper/MediaHelper.php line 300
It makes no sense to me. It reads in the last character so none of the following tag tests can ever find a tag.
If terminated after the file name it can successfully reject a bad svg file.
Can someone explain?
Expected result
Actual result
System information (as much as possible)
Additional comments
Beta Was this translation helpful? Give feedback.
All reactions