]> git.decadent.org.uk Git - maypole.git/commitdiff
#6573 Set empty params to '' instead of undef (Jody Belka)
authorSimon Cozens <simon@simon-cozens.org>
Mon, 21 Jun 2004 13:29:11 +0000 (13:29 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Mon, 21 Jun 2004 13:29:11 +0000 (13:29 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@153 48953598-375a-da11-a14b-00016c27c3ee

lib/Apache/MVC.pm

index e284b1e54e8df4b03f8aee8878c64fa24959ea5d..21071de5950e5181185ed820bb7e85e86b525772 100644 (file)
@@ -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 };
 }