projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix lighttpd tests to use correct lib directory
[catagits/Catalyst-Runtime.git]
/
lib
/
Catalyst
/
Engine.pm
diff --git
a/lib/Catalyst/Engine.pm
b/lib/Catalyst/Engine.pm
index
c53bc12
..
089a959
100644
(file)
--- a/
lib/Catalyst/Engine.pm
+++ b/
lib/Catalyst/Engine.pm
@@
-658,10
+658,9
@@
as Apache may implement this using Apache's C-based modules, for example.
sub unescape_uri {
my ( $self, $str ) = @_;
-
- $str =~ s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg;
- $str =~ s/\+/ /g;
-
+
+ $str =~ s/(?:%([0-9A-Fa-f]{2})|\+)/defined $1 ? chr(hex($1)) : ' '/eg;
+
return $str;
}