summaryrefslogtreecommitdiff
path: root/doc/bugs
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2008-04-08 14:33:13 -0400
committerJoey Hess <joey@kitenet.net>2008-04-08 14:33:13 -0400
commit8ea8f21c20b7a35c72c8f7f753478a27c6a0187a (patch)
tree0855d259ba764c2c6f2d63fd2c1cb7c177e97e76 /doc/bugs
parent16338ed7716a1cb6f5d88da789eb8e8e98d9cf32 (diff)
web commit by http://sabr.myopenid.com/
Diffstat (limited to 'doc/bugs')
-rw-r--r--doc/bugs/Undefined_subroutine_IkiWiki::escapeHTML.mdwn21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/bugs/Undefined_subroutine_IkiWiki::escapeHTML.mdwn b/doc/bugs/Undefined_subroutine_IkiWiki::escapeHTML.mdwn
new file mode 100644
index 000000000..c2ed15e4e
--- /dev/null
+++ b/doc/bugs/Undefined_subroutine_IkiWiki::escapeHTML.mdwn
@@ -0,0 +1,21 @@
+Trying to upgrade to IkiWiki 2.41, whenever I try to edit a page I get:
+
+ [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);
+
+That's dirty and wrong though... Can you suggest a better fix?