aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-05-21 14:00:55 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-05-21 14:00:55 -0400
commit1a677f862c8a5e1e446adcea3f3737de07085c35 (patch)
tree4b5d4c3a147649f3e3f781b987993926d8b9677e /doc/bugs
parent49635b0ca563b336a5ffc1d17a4197ee8b437018 (diff)
downloadikiwiki-1a677f862c8a5e1e446adcea3f3737de07085c35.tar
ikiwiki-1a677f862c8a5e1e446adcea3f3737de07085c35.tar.gz
response
Diffstat (limited to 'doc/bugs')
-rw-r--r--doc/bugs/SSI_include_stripped_from_mdwn.mdwn18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/bugs/SSI_include_stripped_from_mdwn.mdwn b/doc/bugs/SSI_include_stripped_from_mdwn.mdwn
index bd895127a..5519e45c6 100644
--- a/doc/bugs/SSI_include_stripped_from_mdwn.mdwn
+++ b/doc/bugs/SSI_include_stripped_from_mdwn.mdwn
@@ -1,3 +1,21 @@
If I have a &lt;--#include virtual="foo" --&gt; in some file, it gets stripped, even though other HTML comments don't get stripped. I imagine it's some plugin doing it, or IkiWiki itself, or an IkiWiki dependency, but I haven't found where this is happening. I'm trying to implement a workaround for my sidebars forcing a rebuild of the wiki every day - I use the calendar plugin - when the day changes, by using SSI.
> It is probably the [[plugins/htmlscrubber]] plugin. -- [[Jon]]
+
+> htmlscrubber does strip these, because they look like
+> a html tag to it, not a html comment. (html comments start
+> with `<!--` .. of course, they get stripped too, because
+> they can be used to hide javascript..)
+>
+> Anyway, it makes sense for the htmlscrubber to strip server-side
+> includes because otherwise your wiki could be attacked
+> by them being added to it. If you want to use both the htmlscrubber and
+> SSI together, I'd suggest you modify the [[wikitemplates]]
+> and put the SSI on there.
+>
+> Ie, `page.tmpl` has a
+> div that the sidebar is put into; if you just replace
+> that with the SSI that includes your static sidebar,
+> you should be good to go. --[[Joey]]
+
+[[done]]