Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit 785b4d1

Browse files
committed
Fix escaped html characters; they are now correctly transformed.
Signed-off-by: Yoshi2889 <[email protected]>
1 parent 5973590 commit 785b4d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/SnifferHelper.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ public static function getTitleFromUri($uri)
6161

6262
if (preg_match('/<title(?:[^>]+)?>(.*)<\\/title>/is', $contents, $matches) && !empty($matches[1]))
6363
{
64-
$title = htmlspecialchars_decode(trim($matches[1]), ENT_QUOTES);
64+
$title = trim($matches[1]);
65+
$title = html_entity_decode($title, ENT_QUOTES | ENT_HTML401);
66+
67+
// Abort the operation.
6568
return false;
6669
}
6770

0 commit comments

Comments
 (0)