-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
use of base64 images #270
Comments
If I understand the issue correctly, we can't currently implement this due to security restrictions. For example, a user could embed an SVG with an inline script. /cc @mastahyeti |
I see... |
Makes sense. Hopefully we can open up the API for our image uploads that we support on issues.
See #199 |
Yes and no. Here's an entry on Wikipedia for a base64 encoded red dot: <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" /> And here it is rendered: Not sure if camo or something else is interfering. |
@bkeepers I can't think of anything wrong with allowing the data scheme in our sanitization. SVG gives me the jeebies because it's so damned flexible/powerful. The browsers seem to be doing a good job of disabling functionality like scripting, lints, etc when SVG are rendered in image tags though. One thing to be careful about with allowing data URIs though is that we always wrap image tags in links to the image src. I don't think we want to be linking to data URIs, so that should be stripped out. @gjtorikian The reason why your image doesn't render is that you have the src set to /cc @ptoomey3 @gregose @josh Am I missing anything with allowing data URIs for images? |
Yeah, so long as we restrict stuff to img tags I think we should be ok. |
I am copy-pasting the same |
Probably okay to image tags. I'm just worried about long term. |
What happens if a |
+1 for base64 images in markdown |
damn. i was hoping that this existed already. |
The only thing about base:64 that makes me worried, is the length of issues and logs, once it might get bigger(specially if it is a screenshot or something like this). |
Thanks for requesting this feature. A commit to this library can't add support for it, so I'm going to close this issue. I'm guessing it will require a change to the SanitizationFilter in jch/html-pipeline, so you might want to try making a pull request there. |
Any chance we can support Base64 Encoded woff fonts in SVG? |
It seems GitHub does not support data: URI for images in markdown. c.f. github/markup#270
Year 2018 (Nearly 2019) and this feature is neither working nor implemented. |
👋 Please reach out to our support team with your feature request — this repository is just for issues for the
If a commit to this repo can't fix it, the issue doesn't belong here. The support team keeps track of feature requests and how many people are asking for them. Thanks! |
Markdown in issues should(must) accept images in base64.
When using the api, we might use it to upload an image from a canvas.
Also useful when we don't want to really upload the image to anywhere in the server, but the issue(for example, a printscreen).
I believe this is not a very complex feature to apply, and it would be pretty useful.
The text was updated successfully, but these errors were encountered: