From f3ed43a1caabdb06c4acd35edd6c4d8149d78cdb Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 9 Jun 2011 10:46:09 -0400 Subject: [PATCH] encode html --- IkiWiki/Plugin/userlist.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/IkiWiki/Plugin/userlist.pm b/IkiWiki/Plugin/userlist.pm index f3e5cd462..2ebf61978 100644 --- a/IkiWiki/Plugin/userlist.pm +++ b/IkiWiki/Plugin/userlist.pm @@ -58,10 +58,13 @@ sub showuserlist ($$) { my $h="\n"; $h.="\n"; my $info=IkiWiki::userinfo_retrieve(); + eval q{use HTML::Entities}; if (ref $info) { foreach my $user (sort { $info->{$a}->{regdate} <=> $info->{$b}->{regdate} } keys %$info) { my %i=%{$info->{$user}}; - $h.="\n"; + $h.="\n"; } } $h.="
".gettext("login")."".gettext("email")."
$user".(defined $i{email} ? $i{email} : "")."
".encode_entities($user)."". + encode_entities(defined $i{email} ? $i{email} : ""). + "
\n"; -- 2.26.2