From fee86c7052c227762c7325eb5c2811d9323f8429 Mon Sep 17 00:00:00 2001 From: Alexander Kozhevnikov Date: Mon, 14 Sep 2020 09:54:34 +0300 Subject: [PATCH] xml fix for #400 --- application/components/payment/Pay2PayPayment.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/components/payment/Pay2PayPayment.php b/application/components/payment/Pay2PayPayment.php index ede70e2bd..6405fbaac 100644 --- a/application/components/payment/Pay2PayPayment.php +++ b/application/components/payment/Pay2PayPayment.php @@ -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']));