X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FApache%2FMVC.pm;h=21071de5950e5181185ed820bb7e85e86b525772;hb=23a99cfd4af079b968c4a32a8d7c02cc5a525d3d;hp=e284b1e54e8df4b03f8aee8878c64fa24959ea5d;hpb=ab3ad934d33ff3941bb73b4dd4ea31c61298a11e;p=maypole.git diff --git a/lib/Apache/MVC.pm b/lib/Apache/MVC.pm index e284b1e..21071de 100644 --- a/lib/Apache/MVC.pm +++ b/lib/Apache/MVC.pm @@ -19,6 +19,9 @@ sub parse_location { $self->parse_path; $self->{params} = { $self->{ar}->content }; + while (my ($key, $value) = each %{$self->{params}}) { + $self->{params}{$key} = '' unless defined $value; + } $self->{query} = { $self->{ar}->args }; }