From 50ac3aa79c28b517af71ef876b7b60146365a3d6 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 28 Mar 2011 12:36:07 -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 5c1827cc0..0e4fcb1dc 100644 --- a/IkiWiki/Plugin/meta.pm +++ b/IkiWiki/Plugin/meta.pm @@ -136,10 +136,10 @@ sub preprocess (@) { #{{{ if (! length $stylesheet) { return "[[meta ".gettext("stylesheet not found")."]]"; } - push @{$metaheaders{$page}}, '"; + "\" type=\"text/css\" />"); } elsif ($key eq 'openid') { if (exists $params{server} && safeurl($params{server})) { diff --git a/debian/changelog b/debian/changelog index c01b697e3..bd030457f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +ikiwiki (2.53.6) oldstable-security; urgency=low + + * 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 (2.53.5) stable-security; urgency=high * htmlscrubber: Security fix: In data:image/* uris, only allow a few -- 2.39.2