Skip to content

Commit

Permalink
xml fix for #400
Browse files Browse the repository at this point in the history
  • Loading branch information
bethrezen authored Sep 14, 2020
1 parent 01becc8 commit fee86c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/components/payment/Pay2PayPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public function content()

public function checkResult($hash = '')
{
if (function_exists("libxml_disable_entity_loader")) {
libxml_disable_entity_loader(true);
}
if (isset($_POST['xml'], $_POST['sign'])) {
$xml = base64_decode(str_replace(' ', '+', $_POST['xml']));
$sign = base64_decode(str_replace(' ', '+', $_POST['sign']));
Expand Down

0 comments on commit fee86c7

Please # to comment.