]> git.decadent.org.uk Git - maypole.git/commitdiff
added preprocess_location method
authorAaron Trevena <aaron.trevena@gmail.com>
Wed, 6 Jun 2007 12:12:33 +0000 (12:12 +0000)
committerAaron Trevena <aaron.trevena@gmail.com>
Wed, 6 Jun 2007 12:12:33 +0000 (12:12 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@568 48953598-375a-da11-a14b-00016c27c3ee

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

index df244326a4c6b497161c324678b27b6376aea0cc..5fd736d3e25681cd240c61d2d233252e46e0c613 100644 (file)
@@ -92,6 +92,8 @@ sub parse_location
         $r->headers_in->set($field_name => $cgi->http($http_header));
     }
 
+    $self->preprocess_location();
+
     my $path = $cgi->url( -absolute => 1, -path_info => 1 );
     my $loc = $cgi->url( -absolute => 1 );
     {
index facedc12d2b27dc04bcda72a533a0bf97a582b7f..39abf1546370987a26f16fb00d57c584bf14b045 100644 (file)
@@ -36,6 +36,9 @@ sub warn {
 sub parse_location {
     my $self = shift;
     my $url  = URI->new( shift @ARGV );
+
+    $self->preprocess_location();
+
     (my $uri_base = $self->config->uri_base) =~ s:/$::;
     my $root = URI->new( $uri_base )->path;
     $self->{path} = $url->path;