[Maypole] multipart/form-data and Apache::MVC::parse_location
Benjamin Tucker
ben@btucker.net
Sat, 24 Jul 2004 17:14:45 -0400
I discovered that on a multipart/form-data POST,
Apache::MVC::parse_location fails to fill the params slot. This patch
fixes the problem, although there may be side-effects I'm not aware of.
Ben
--- MVC.pm Mon Jun 21 09:28:41 2004
+++ MVC.pm Sat Jul 24 12:38:38 2004
@@ -18,7 +18,7 @@
$self->{path} =~ s/^($loc)?\///;
$self->parse_path;
- $self->{params} = { $self->{ar}->content };
+ $self->{params} = {%{$self->{ar}->param}};
while (my ($key, $value) = each %{$self->{params}}) {
$self->{params}{$key} = '' unless defined $value;
}