Fix missing import of escapeHTML in userlink. (Scott Bronson)

master
Joey Hess 2008-04-10 17:39:51 -04:00
parent 15237c74fc
commit e1d456a86f
3 changed files with 14 additions and 0 deletions

View File

@ -621,6 +621,9 @@ sub userlink ($) { #{{{
return "<a href=\"$user\">$oiduser</a>"; return "<a href=\"$user\">$oiduser</a>";
} }
else { else {
eval q{use CGI 'escapeHTML'};
error($@) if $@;
return htmllink("", "", escapeHTML( return htmllink("", "", escapeHTML(
length $config{userdir} ? $config{userdir}."/".$user : $user length $config{userdir} ? $config{userdir}."/".$user : $user
), noimageinline => 1); ), noimageinline => 1);

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
ikiwiki (2.43) UNRELEASED; urgency=low
* Fix missing import of escapeHTML in userlink. (Scott Bronson)
-- Joey Hess <joeyh@debian.org> Thu, 10 Apr 2008 17:36:53 -0400
ikiwiki (2.42) unstable; urgency=high ikiwiki (2.42) unstable; urgency=high
* aggregate: Correct a mistake in the code that dummy up a guid for feeds * aggregate: Correct a mistake in the code that dummy up a guid for feeds

View File

@ -19,3 +19,8 @@ This patch appears to fix it for me:
), noimageinline => 1); ), noimageinline => 1);
That's dirty and wrong though... Can you suggest a better fix? -- [[sabr]] That's dirty and wrong though... Can you suggest a better fix? -- [[sabr]]
> Hmm, I think I've not noticed this because the openid plugin hides it.
> Bet you have openid disabled.
>
> Anyway, your fix is fine, [[applied|done]]. --[[Joey]]