aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaarten Vanraes <alien@mageia.org>2012-03-21 11:55:45 +0000
committerMaarten Vanraes <alien@mageia.org>2012-03-21 11:55:45 +0000
commit7f94af338f88aeb1226f094d3dddb17486d9349f (patch)
treece3799ab8bc9966ec052cf027f36f63bf51dce1c
parent0b89aede6f81df6927f75988939361fe88fc97f1 (diff)
downloadurpmi-proxy-0.3.2.tar
urpmi-proxy-0.3.2.tar.gz
urpmi-proxy-0.3.2.tar.bz2
urpmi-proxy-0.3.2.tar.xz
urpmi-proxy-0.3.2.zip
Fix handling of pathless requests0.3.2
-rw-r--r--VERSION2
-rwxr-xr-xurpmi-proxy.cgi2
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 = "";