From 37833e2ee891f47f3ca2b64eae881f0696836f77 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Fri, 28 Aug 2009 19:44:38 +0000 Subject: [PATCH] correctly decode url escape -- should I move to real http server like Mojo? --- lib/PXElator/httpd.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PXElator/httpd.pm b/lib/PXElator/httpd.pm index 24c2a68..c1c4343 100644 --- a/lib/PXElator/httpd.pm +++ b/lib/PXElator/httpd.pm @@ -371,6 +371,7 @@ sub start { if ($request =~ m{^GET (/.*) HTTP/1.[01]}) { my $path = $1; + $path =~ s/%([0-9A-Fa-f]{2})/chr(hex($1))/ge; my $param; if ( $path =~ s{\?(.+)}{} ) { foreach my $p ( split(/[&;]/, $1) ) { -- 2.20.1