-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Check if filename extensions are coherent with mime-type #187
Comments
Is this issue based around this code, or something different?
While trying to build a new zim file of stackoverflow it looked like the mimeType list being generated was way too long and the ASSERT at the end just fails and kills the build.. There are lots of links to sites like yuml.me where people are using long URL's that include dots to produce UML diagrams. Most of the ridiculously long lines here are from yuml.me in this comment. These URL's end up serving an svg image. #126 (comment) At least two of the numeric strings are lat/long from google maps. Many of the others are obvious typos or copy/paste errors. Looking at the list I didn't really see anything legitimate under 3 or more than 4 characters so I patched it like so to let it build. Without a doubt that still leaves a lot of garbage, but I can at least build stackoverflow. Maybe there is a better approach.
|
This ticket is not a bug, this is a feature request. I believe your comment to be unrealted to this. |
The bug is more that we should not use the extension as mimetype (if we cannot found the mimetype). |
@jmontleon if you have a working copy of a recent stackoverflow dump, would love to get a hold of it :) |
The text was updated successfully, but these errors were encountered: