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
{