Changeset 424

Show
Ignore:
Timestamp:
08/23/05 18:31:17 (5 years ago)
Author:
bradfitz
Message:

-- webserver mode now ignores URL arguments when looking up

filename

Location:
trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/CHANGES

    r422 r424  
     1    -- webserver mode now ignores URL arguments when looking up 
     2       filename 
     3 
    14    -- remove warnings accessing undefs in ranges and vhosts 
    25 
  • trunk/doc/hacking/todo.txt

    r423 r424  
    5858* pidfile writing 
    5959 
    60 * --version / --help 
    61  
    6260* acl stuff 
    6361 
     
    6866 
    6967* ProxyPassReverse-like system 
    70  
    71 * webserver mode doesn't chop of URL parameters 
  • trunk/lib/Perlbal/ClientHTTPBase.pm

    r406 r424  
    303303    my $uri = Perlbal::Util::durl($self->{replacement_uri} || $hd->request_uri); 
    304304 
     305    # chop off the query string 
     306    $uri =~ s/\?.*//; 
     307 
    305308    # don't allow directory traversal 
    306309    if ($uri =~ /\.\./ || $uri !~ m!^/!) { 
  • trunk/t/15-webserver.t

    r336 r424  
    44use Perlbal::Test; 
    55 
    6 use Test::More 'no_plan'; 
     6use Test::More tests => 11; 
    77require HTTP::Request; 
    88 
     
    6060ok(get($url) eq $contents, "GET request"); 
    6161 
     62# a get with URL parameters 
     63ok(get("$url?foo=bar") eq $contents, "GET request"); 
     64 
    6265# 404 path 
    6366ok(! get("$url/404.txt"), "missing file");