]> git.decadent.org.uk Git - maypole.git/commitdiff
Added parse_args to Maypole::CLI and CGI::Maypole
authorSebastian Riedel <sri@labs.kraih.com>
Thu, 9 Sep 2004 23:26:39 +0000 (23:26 +0000)
committerSebastian Riedel <sri@labs.kraih.com>
Thu, 9 Sep 2004 23:26:39 +0000 (23:26 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@171 48953598-375a-da11-a14b-00016c27c3ee

lib/CGI/Maypole.pm
lib/Maypole/CLI.pm

index 0426f5ab092bc4c74772932973398627e7ce8da3..88995ef0401e84d18030bca8a56ddf840b3fb323 100644 (file)
@@ -22,6 +22,11 @@ sub parse_location {
      no warnings 'uninitialized';
      $self->{path} =~ s/^($loc)?\///;
      $self->parse_path;
+     $self->parse_args;
+}
+
+sub parse_args {
+     my $self = shift;
      $self->{params} = { $self->{cgi}->Vars };
      $self->{query}  = { $self->{cgi}->Vars };
 }
index b2c6e911d545885147fff1e872ad3f1837482d21..9f65c7c0b747c66c3e8612b2dd0b2011ee2fd93a 100644 (file)
@@ -25,6 +25,12 @@ sub parse_location {
     $self->{path} = $url->path;
     $self->{path} =~ s/^$root//i if $root;
     $self->parse_path;
+    $self->parse_args;
+}
+
+sub parse_args {
+    my $self = shift;
+    $self->{params} = $url->query_form_hash;
     $self->{query} = $url->query_form_hash;
 }