Skip to content

Commit

Permalink
Inline uri_unescape to drop URI::Escape which is the only non-core
Browse files Browse the repository at this point in the history
dependency of this distribution.
  • Loading branch information
miyagawa committed Feb 4, 2010
1 parent d56eaf4 commit 1da1edb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Makefile.PL
Expand Up @@ -7,7 +7,6 @@ requires(
Socket => 0,
Test::More => 0,
CGI => 0,
URI::Escape => 0
);

WriteAll( sign => 1);
1 change: 0 additions & 1 deletion lib/HTTP/Server/Simple.pm
Expand Up @@ -5,7 +5,6 @@ package HTTP::Server::Simple;
use FileHandle;
use Socket;
use Carp;
use URI::Escape;

use vars qw($VERSION $bad_request_doc);
$VERSION = '0.41_01';
Expand Down
2 changes: 1 addition & 1 deletion lib/HTTP/Server/Simple/CGI/Environment.pm
Expand Up @@ -84,7 +84,7 @@ sub setup_environment_from_metadata {

# Apache and lighttpd both do one layer of unescaping on
# path_info; we should duplicate that.
$ENV{PATH_INFO} = URI::Escape::uri_unescape($ENV{PATH_INFO});
$ENV{PATH_INFO} =~ s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg;
}

=head2 header
Expand Down

0 comments on commit 1da1edb

Please sign in to comment.