That uploading an SVG that contains CR/LF will fail with error message. However uploading an SVG that has the CR/LF converted to LF will work.
In other words, if a user sees the error message:
Sorry, but we couldn’t determine the size of the image. Maybe your image is corrupted?
How are they to know that one of the problems is that they should change the CR/LF to LF
or another option is that
discourse should modify the security scanner/whistleblower to allow CR/LF as valid. ![]()