Skip to content

Commit 7b74c2e

Browse files
author
Joan He
committed
MAGETWO-47881: [GitHub]Magento\Framework\DataObject::__call() - print_r() is dangerous
1 parent b2a7430 commit 7b74c2e

File tree

6 files changed

+338
-374
lines changed

6 files changed

+338
-374
lines changed

app/code/Magento/Paypal/Model/Api/Nvp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ public function call($methodName, array $request)
12261226
$http->close();
12271227

12281228
if (!$this->_validateResponse($methodName, $response)) {
1229-
$this->_logger->critical(new \Exception(__("PayPal response hasn't required fields.")));
1229+
$this->_logger->critical(new \Exception(__('PayPal response hasn\'t required fields.')));
12301230
throw new \Magento\Framework\Exception\LocalizedException(
12311231
__('Something went wrong while processing your order.')
12321232
);

app/code/Magento/Paypal/Model/Payflow/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __call($method, $args)
5353
return isset($this->_data[$key]);
5454
}
5555
throw new \Magento\Framework\Exception\LocalizedException(
56-
__("Invalid method %1::%2(%3)", get_class($this), $method, print_r($args, 1))
56+
__("Invalid method %1::%2", get_class($this), $method)
5757
);
5858
}
5959
}

0 commit comments

Comments
 (0)