]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
response
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 21 Oct 2008 01:51:33 +0000 (21:51 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 21 Oct 2008 01:51:33 +0000 (21:51 -0400)
doc/bugs/SVG_files_not_recognized_as_images.mdwn

index 2339b075a47f8ba258b26b7c6aadfd2fbb30bec8..41452e7c17682cff19f326d2485465697aff0395 100644 (file)
@@ -1,5 +1,15 @@
-In ikiwiki 2.66, SVG images are not recognized as images. In ikiwiki.pm, the hardcoded list of image file extensions does not include ".svg", which it probably should unless there's some other issue about rendering SVGs?
+In ikiwiki 2.66, SVG images are not recognized as images. In ikiwiki.pm,
+the hardcoded list of image file extensions does not include ".svg", which
+it probably should unless there's some other issue about rendering SVGs?
 
 The 'img' plugin also seems to not support SVGs.
 
 
 The 'img' plugin also seems to not support SVGs.
 
-
+> SVG images can only be included via an `<object>`, `<embed>`, or
+> `<iframe>` tag. Or, perhaps as [inline SVG](http://wiki.svg.org/Inline_SVG). 
+> The [[plugins/htmlscrubber]] strips all three tags since they can easily
+> be used maliciously. If doing inline SVG, I'd worry that the svg file
+> could be malformed and mess up the html, or even inject javascript. So,
+> the only options seem to be only supporting svgs on wikis that do not
+> sanitize their html, or assuming that svgs are trusted content and
+> embedding them inline. None of which seem particularly palatable.
+> --[[Joey]]