Subject: | submit URLs are using entity (&) instead of actual ampersand (in 0.8012) |
Date: | Tue, 28 Aug 2007 15:52:55 -0300 |
To: | bug-CMS-MediaWiki [...] rt.cpan.org |
From: | "Ken Crowell" <oeuftete [...] gmail.com> |
I have to apply this patch to my CMS::MediaWiki installation to make it
work. I believe the original URL would be right as an href in an HTML
document, but not as an argument to LWP::UserAgent.
--- MediaWiki.pm 2007-08-28 15:00:53.801468232 -0300
+++ MediaWiki.pm.old 2007-08-28 15:00:11.940832016 -0300
@@ -77,7 +77,7 @@
my $index_path = "/index.php";
$index_path = "/$args{'path'}/index.php" if $args{'path'};
- my $login_url =
"$args{'protocol'}://$args{'host'}$index_path?title=Special:Userlogin&action=submitlogin";
+ my $login_url =
"$args{'protocol'}://$args{'host'}$index_path?title=Special:Userlogin&action=submitlogin";
Debug "[login] POST $login_url\..." if $self->{'debug'};
@@ -177,7 +177,7 @@
$tags{'action' } = 'submit';
$resp = $ua->request(
- POST
"$args{'protocol'}://$WHOST/$WPATH/index.php?title=$args{'title'}&action=submit"
,
+ POST
"$args{'protocol'}://$WHOST/$WPATH/index.php?title=$args{'title'}&action=submit"
,
Content_Type => 'application/x-www-form-urlencoded' ,
Content => [ %tags ]
);
--
Ken Crowell, oeuftete@gmail.com