Ensure we HTML-decode the <title> tag.

Fixes #10020
fork-5.53.8
Greyson Parrelli 2020-09-15 23:05:08 -04:00
rodzic 19cc43c442
commit 0c73ddc08b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -148,7 +148,7 @@ public final class LinkPreviewUtil {
Matcher titleMatcher = TITLE_PATTERN.matcher(html);
if (titleMatcher.find() && titleMatcher.groupCount() > 0) {
htmlTitle = titleMatcher.group(1);
htmlTitle = htmlDecoder.fromEncoded(titleMatcher.group(1));
}
Matcher faviconMatcher = FAVICON_PATTERN.matcher(html);