Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed using parsedresponses (fixes rt #74629)

  • Loading branch information...
commit af67183eeacb871024adb81a0c5e68ee42fc34d3 1 parent 4f086b8
@sni authored
View
4 Webinject/lib/Webinject.pm
@@ -1460,9 +1460,9 @@ sub _convertbackxml {
sub _convertbackxmlresult {
my ( $self, $string, $timestamp ) = @_;
return unless defined $string;
- $string =~ s~{PARSEDRESULT}~$self->{'parsedresult'}->{parseresponse}~gmx if defined $self->{'parsedresult'}->{parseresponse};
+ $string =~ s~\{PARSEDRESULT\}~$self->{'parsedresult'}->{'parseresponse'}~gmx if defined $self->{'parsedresult'}->{'parseresponse'};
for my $x (1..5) {
- $string =~ s~{PARSEDRESULT$x}~$self->{'parsedresult'}->{parseresponse$x}~gmx if defined $self->{'parsedresult'}->{"parseresponse$x"};
+ $string =~ s~\{PARSEDRESULT$x\}~$self->{'parsedresult'}->{"parseresponse$x"}~gmx if defined $self->{'parsedresult'}->{"parseresponse$x"};
}
return $string;
}
View
5 Webinject/t/data/03-parse_response.xml
@@ -12,8 +12,9 @@
<case
id = "2"
description1 = "test negative string verification"
- method = "get"
- url = "{BASEURL}/teststring"
+ method = "post"
+ url = "{BASEURL}/post"
+ postbody = "RelayState={PARSEDRESULT}&SAMLResponse {PARSEDRESULT1}"
verifyresponsecode = "200"
/>
</testcases>
Please sign in to comment.
Something went wrong with that request. Please try again.