Unescape paypal's content before parsing it so that multi-line data is handled correctly. Fixes bug #12103.
This commit is contained in:
parent
96ee557586
commit
c015b6710c
2 changed files with 4 additions and 2 deletions
|
|
@ -10,6 +10,7 @@
|
|||
- fixed #11955: Rich Text Editor for Forums doesn't work on the iPad
|
||||
- fixed #11992: html source editor
|
||||
- fixed #12100: Carousel and/or RichEdit
|
||||
- fixed #12103: PayPalStd driver fails occasionally
|
||||
|
||||
7.10.13
|
||||
- added #12079: Carousel Auto Play
|
||||
|
|
|
|||
|
|
@ -287,8 +287,9 @@ sub processPayment {
|
|||
at => $self->get('identityToken'),
|
||||
);
|
||||
my $response = LWP::UserAgent->new->post($self->payPalUrl, \%form);
|
||||
my ($status, @lines) = split("\n", uri_unescape($response->content));
|
||||
my %params = map { split /=/ } @lines;
|
||||
my ($status, @lines) = split("\n", $response->content);
|
||||
my %params = map { split /=/ }
|
||||
map { uri_unescape($_) } @lines;
|
||||
|
||||
if ($status =~ /FAIL/) {
|
||||
my $message = '<table><tr><th>Field</th><th>Value</th></tr>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue