* Allow raw html in the rst plugin.

master
joey 2007-07-29 22:39:40 +00:00
parent f371f2f2d8
commit 54e25f034c
4 changed files with 16 additions and 3 deletions

View File

@ -30,7 +30,7 @@ from sys import stdin;
html = publish_string(stdin.read(), writer_name='html',
settings_overrides = { 'halt_level': 6,
'file_insertion_enabled': 0,
'raw_enabled': 0 }
'raw_enabled': 1 }
);
print html[html.find('<body>')+6:html.find('</body>')].strip();
";

9
debian/NEWS vendored
View File

@ -1,3 +1,12 @@
ikiwiki (2.5) unstable; urgency=low
In this version the rst plugin allows raw html to be embedded in rst files.
As long as the htmlscrubber is enabled, this should be safe. If you are
using the rst plugin without the htmlscrubber in a publically writable wiki,
you should turn on the htmlscrubber.
-- Joey Hess <joeyh@debian.org> Sun, 29 Jul 2007 18:37:22 -0400
ikiwiki (2.5) unstable; urgency=low
Due to some config changes in this version, wrappers need to be rebuilt on

3
debian/changelog vendored
View File

@ -4,8 +4,9 @@ ikiwiki (2.6) UNRELEASED; urgency=low
various reviewers.
* Fix problems with previewing in the graphviz plugin. Thanks,
HenrikBrixAndersen.
* Allow raw html in the rst plugin.
-- Joey Hess <joeyh@debian.org> Sun, 29 Jul 2007 18:34:13 -0400
-- Joey Hess <joeyh@debian.org> Sun, 29 Jul 2007 18:38:36 -0400
ikiwiki (2.5) unstable; urgency=low

View File

@ -2,6 +2,9 @@ rst.pm disallows raw HTML input. (It's meant as a security feature.)
IkiWiki generates HTML in rst files pretty much all the time. As
such, we should enable raw HTML support. --Ethan
> [[done]], although I did add a news item about it, since it could break
> the security of certian setups that don't use the htmlscrubber. --[[Joey]]
<pre>
Index: IkiWiki/Plugin/rst.pm
===================================================================
@ -16,4 +19,4 @@ Index: IkiWiki/Plugin/rst.pm
);
print html[html.find('<body>')+6:html.find('</body>')].strip();
";
</pre>
</pre>