From e096762c54594810957125520a5626abaabdee15 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 28 Mar 2011 12:38:46 -0400 Subject: [PATCH] meta: Security fix; don't allow alternative stylesheets to be added on pages where the htmlscrubber is enabled. --- IkiWiki/Plugin/meta.pm | 4 ++-- debian/changelog | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm index eccbf976c..c33c8b238 100644 --- a/IkiWiki/Plugin/meta.pm +++ b/IkiWiki/Plugin/meta.pm @@ -173,10 +173,10 @@ sub preprocess (@) { if (! length $stylesheet) { error gettext("stylesheet not found") } - push @{$metaheaders{$page}}, '"; + "\" type=\"text/css\" />", $page, $destpage); } elsif ($key eq 'openid') { my $delegate=0; # both by default diff --git a/debian/changelog b/debian/changelog index b4d502d00..900f6a984 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +ikiwiki (3.20100815.7) stable-security; urgency=high + + * meta: Security fix; don't allow alternative stylesheets to be added on + pages where the htmlscrubber is enabled. + + -- Joey Hess Mon, 28 Mar 2011 12:35:13 -0400 + ikiwiki (3.20100815.6) testing; urgency=low * comments: Fix commenting, broken by security fix. -- 2.39.2