]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/SSI_include_stripped_from_mdwn.mdwn
fix the other half of the filecheck filename bug
[ikiwiki.git] / doc / bugs / SSI_include_stripped_from_mdwn.mdwn
1 If I have a <--#include virtual="foo" --> 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.
2
3 > It is probably the [[plugins/htmlscrubber]] plugin. -- [[Jon]]
4
5 > htmlscrubber does strip these, because they look like
6 > a html tag to it, not a html comment. (html comments start
7 > with `<!--` .. of course, they get stripped too, because
8 > they can be used to hide javascript..)
9
10 > Anyway, it makes sense for the htmlscrubber to strip server-side
11 > includes because otherwise your wiki could be attacked
12 > by them being added to it. If you want to use both the htmlscrubber and
13 > SSI together, I'd suggest you modify the [[wikitemplates]]
14 > and put the SSI on there.
15
16 > Ie, `page.tmpl` has a 
17 > div that the sidebar is put into; if you just replace
18 > that with the SSI that includes your static sidebar,
19 > you should be good to go. --[[Joey]]
20
21 [[done]]