X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=blobdiff_plain;f=blosxom.cgi;h=29b9a540d4ebf6022a0e38a47ba1cb9de0f799f8;hp=ee9bebc03717f46c203afef2366d0926221fe88f;hb=282b6119e5aa8e7c679eb6c39aeaae5b16a8d6dd;hpb=023a085f31b72b39af7ce212a23d4f96c6960b7b diff --git a/blosxom.cgi b/blosxom.cgi index ee9bebc..29b9a54 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -144,6 +144,8 @@ my $fh = new FileHandle; # Use the stated preferred URL or figure it out automatically $url ||= url( -path_info => 1 ); +# Unescape %XX hex codes (from URI::Escape::uri_unescape) +$url =~ s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg; $url =~ s/^included:/http:/ if $ENV{SERVER_PROTOCOL} eq 'INCLUDED'; # NOTE: Since v3.12, it looks as if CGI.pm misbehaves for SSIs and