From 7f94af338f88aeb1226f094d3dddb17486d9349f Mon Sep 17 00:00:00 2001 From: Maarten Vanraes Date: Wed, 21 Mar 2012 11:55:45 +0000 Subject: Fix handling of pathless requests --- VERSION | 2 +- urpmi-proxy.cgi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 9e11b32..d15723f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.1 +0.3.2 diff --git a/urpmi-proxy.cgi b/urpmi-proxy.cgi index 78b4865..f439100 100755 --- a/urpmi-proxy.cgi +++ b/urpmi-proxy.cgi @@ -52,7 +52,7 @@ my $file = $ENV{PATH_INFO}; return_error(500, 'Server error') if !$file; # split up request -return_error(500, 'Server error') if $file !~ m!^(.+)/([^/]*)$!; +return_error(500, 'Server error') if $file !~ m!^(.*)/([^/]*)$!; my $dest_path = $1; my $filename = $2; my $file_type = ""; -- cgit v1.2.1