Permalink
Browse files

Explicitly stringify the request argument before applying deflate.

Things that aren't just bare strings but do stringify confuse rawdeflate -
do the stringify for it.
  • Loading branch information...
1 parent 6e0b369 commit ebe3248e2e4c2c8663715ccdceaaea93dc404e3f Chris Andrews committed Dec 24, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/Net/SAML2/Binding/Redirect.pm
View
6 lib/Net/SAML2/Binding/Redirect.pm
@@ -70,9 +70,11 @@ authentication process with the IdP.
sub sign {
my ($self, $request, $relaystate) = @_;
-
+
+ my $input = "$request";
my $output = '';
- rawdeflate \$request => \$output;
+
+ rawdeflate \$input => \$output;
my $req = encode_base64($output, '');
my $u = URI->new($self->url);

0 comments on commit ebe3248

Please sign in to comment.