From 1f26347379fd646e75302f32cf3411fb09cef5e4 Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 6 Sep 2006 20:02:12 +0000 Subject: [PATCH] escaping fix from Emanuele Aina --- IkiWiki/CGI.pm | 2 +- templates/recentchanges.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 6e1efbd69..be06db49c 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -81,7 +81,7 @@ sub cgi_recentchanges ($) { #{{{ my $changelog=[rcs_recentchanges(100)]; foreach my $change (@$changelog) { $change->{when} = concise(ago($change->{when})); - $change->{user} = htmllink("", "", $change->{user}, 1); + $change->{user} = htmllink("", "", escapeHTML($change->{user}), 1); $change->{pages} = [ map { $_->{link} = htmllink("", "", $_->{page}, 1); diff --git a/templates/recentchanges.tmpl b/templates/recentchanges.tmpl index f927cf62f..726e52f64 100644 --- a/templates/recentchanges.tmpl +++ b/templates/recentchanges.tmpl @@ -30,7 +30,7 @@ - +