Skip to content

Commit 9c90ed6

Browse files
committed
Used Named Parameter but Still Need to Support Php7.4
1 parent 8b9b378 commit 9c90ed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpSpreadsheet/Writer/Html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1513,7 +1513,7 @@ private function generateRow(Worksheet $worksheet, array $values, $row, $cellTyp
15131513
// Hyperlink?
15141514
if ($worksheet->hyperlinkExists($coordinate) && !$worksheet->getHyperlink($coordinate)->isInternal()) {
15151515
$url = $worksheet->getHyperlink($coordinate)->getUrl();
1516-
$urldecode = strtolower(html_entity_decode(trim($url), encoding: 'UTF-8'));
1516+
$urldecode = strtolower(html_entity_decode(trim($url), ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, 'UTF-8'));
15171517
$parseScheme = preg_match('/^(\\w+):/', $urldecode, $matches);
15181518
if ($parseScheme === 1 && !in_array($matches[1], ['http', 'https', 'file', 'ftp', 's3'], true)) {
15191519
$cellData = htmlspecialchars($url, Settings::htmlEntityFlags());

0 commit comments

Comments
 (0)