Skip to content
Browse files

URI::Encode version 0.08 enabled double encoding by default. This cod…

…e depended on the behavior in 0.07. Set the defaults for the encoder to behave like 0.07.
  • Loading branch information...
1 parent e3da2a1 commit 5fda2a1cf31edfadeb22624401ab203735dbfd54 @cwimmer committed Oct 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Net/Amazon/SignatureVersion4.pm
View
2 lib/Net/Amazon/SignatureVersion4.pm
@@ -298,7 +298,7 @@ sub get_canonical_request{
sub _encode{
#This method is used to add some additional encodings that are not enforced by the URI::Encode module. AWS expects these.
- my $encoder = URI::Encode->new();
+ my $encoder = URI::Encode->new({ double_encode => 0 });
my $rv=shift;
# %20=%2F%2C%3F%3E%3C%60%22%3B%3A%5C%7C%5D%5B%7B%7D&%40%23%24%25%5E=
# + =/ , ? %3E%3C%60%22; : %5C%7C] [ %7B%7D&@ # $ %25%5E=

0 comments on commit 5fda2a1

Please sign in to comment.
Something went wrong with that request. Please try again.