Skip Menu |

This queue is for tickets about the MediaWiki CPAN distribution.

Report information
The Basics
Id: 21287
Status: open
Priority: 0/
Queue: MediaWiki

People
Owner: Nobody in particular
Requestors: stuart.caie [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 1.03
  • 1.04
  • 1.05
  • 1.06
  • 1.07
Fixed in: (no value)



Subject: Doesn't handle wiki pages with ampersand in the title
Page titles are never escaped - this breaks especially when there's an ampersand in the page title.
Subject: escape_titles.diff
--- /usr/share/perl5/MediaWiki/page.pm 2006-08-25 09:17:50.000000000 +0100 +++ page.pm 2006-09-02 20:37:52.000000000 +0100 @@ -34,6 +34,7 @@ BEGIN { + use URI::Escape qw(uri_escape_utf8); use HTTP::Request::Common; use MediaWiki qw(ERR_NO_ERROR ERR_NO_INIHASH ERR_PARSE_INI ERR_NO_AUTHINFO ERR_NO_MSGCACHE ERR_LOGIN_FAILED ERR_LOOP); @@ -233,7 +234,7 @@ sub _wiki_url { my($obj, $title) = @_; - return $obj->{client}->{index} . "?title=" . ($title || $obj->{title}); + return $obj->{client}->{index} . "?title=" . uri_escape_utf8($title || $obj->{title}); } sub _summary {
From: buzz [...] exotica.org.uk
On Sat Sep 02 16:03:29 2006, stuart.caie@gmail.com wrote: Any chance we can have a new "official" release which includes this patch and the mediawiki 1.9 edittoken fix I posted on the other bug ? Thanks :)
Fixed in new release MediaWiki-1.10. Sorry for such a delay.