2008-04-08 20:37:31 +02:00
|
|
|
Trying to upgrade to IkiWiki 2.41+ (git head), whenever I try to edit a page I get:
|
2008-04-08 20:33:13 +02:00
|
|
|
|
|
|
|
[Mon Apr 07 16:53:33 2008] [error] [client 68.122.117.135] Undefined subroutine &IkiWiki::escapeHTML called at /root/ikiwiki/install/share/perl/5.8.8/IkiWiki.pm line 610.
|
|
|
|
[Mon Apr 07 16:53:33 2008] [error] [client 68.122.117.135] Premature end of script headers: wrapper.cgi
|
|
|
|
|
|
|
|
This patch appears to fix it for me:
|
|
|
|
|
|
|
|
--- IkiWiki.pm 2008-04-07 17:05:04.000000000 -0400
|
|
|
|
+++ /usr/share/perl5/IkiWiki.pm 2008-04-07 18:03:55.000000000 -0400
|
|
|
|
@@ -621,6 +619,9 @@
|
|
|
|
return "<a href=\"$user\">$oiduser</a>";
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
+ eval q{use CGI 'escapeHTML'};
|
|
|
|
+ error($@) if $@;
|
|
|
|
+
|
|
|
|
return htmllink("", "", escapeHTML(
|
|
|
|
length $config{userdir} ? $config{userdir}."/".$user : $user
|
|
|
|
), noimageinline => 1);
|
|
|
|
|
2008-04-09 08:42:29 +02:00
|
|
|
That's dirty and wrong though... Can you suggest a better fix? -- [[sabr]]
|
2008-04-10 23:39:51 +02:00
|
|
|
|
|
|
|
> 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]]
|
2008-04-13 04:46:00 +02:00
|
|
|
>> Actually, I do have openid enabled. Passwordauth is disabled, dunno if that matters. My setup file is here: <http://iki.u32.net/iki.setup>
|