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
Note the whitespaces after the commas. Given to how it is parsed, the mime types are stored with a whitespace at the beginning, resulting in only the first item of the list actually matching the contains mime type check:
The transcoder keeps a list of allowed script media types based on the
KEY_ALLOWED_SCRIPT_TYPES
hint, which by default is:"text/ecmascript, application/ecmascript, text/javascript, application/javascript, application/java-archive"
Note the whitespaces after the commas. Given to how it is parsed, the mime types are stored with a whitespace at the beginning, resulting in only the first item of the list actually matching the
contains
mime type check:echosvg/echosvg-transcoder/src/main/java/io/sf/carte/echosvg/transcoder/SVGAbstractTranscoder.java
Line 1094 in 8016a5c
As a result, valid script media types are not allowed.
The text was updated successfully, but these errors were encountered: