Skip to content

Commit 4e43c1a

Browse files
committed
Code Review fix
1 parent 5ff1c65 commit 4e43c1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Shipping/Model/Carrier/AbstractCarrierOnline.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,8 @@ protected function _setCachedQuotes($requestParams, $response)
428428
*/
429429
protected function _prepareServiceName($name)
430430
{
431-
$name = htmlspecialchars_decode((string)$name);
431+
// phpcs:disable Magento2.Functions.DiscouragedFunction
432+
$name = html_entity_decode((string)$name);
432433
$name = strip_tags(preg_replace('#&\w+;#', '', $name));
433434

434435
return trim($name);

0 commit comments

Comments
 (0)