-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't open file when <svg is inside the file #4679
Comments
Can reproduce, although I'm not so sure if this is a bug or intended functionality. Image MIME types are disallowed here, so there's a chance that this is preventing another issue, or it was an oversight. |
Binary image formats should be ignored, however text based formats such as SVG should be allowed. |
The |
The regex could be updated to: |
Current Behavior
When someone adds <svg in a file, it is not possible to open it anymore from the file manager.
That's correct handling when it's an SVG file, but not when it's a JS file for example.
This will happen when someone uses the SVG directly inside the code.
Expected Behavior
Be able to open the file from the file manager when it's not a .svg file.
Steps to Reproduce
Create a file
Add somewhere in the file <svg
Save it as test.js
return to the file manager
Try to open the file
Panel Version
1.11.2
Wings Version
1.11.2
Games and/or Eggs Affected
No response
Docker Image
No response
Error Logs
No response
Is there an existing issue for this?
The text was updated successfully, but these errors were encountered: