fix #1664
This commit is contained in:
parent
425d2eb74f
commit
772e87d6a6
2 changed files with 5 additions and 4 deletions
|
@ -16,6 +16,7 @@ Added:
|
|||
|
||||
Fixed:
|
||||
* Enhanced QSS for tooltips for better readability. (#1637)
|
||||
* RSS feed encoding detection was prone to errors. (#1664)
|
||||
* `Localization` page now displays correctly. (#1611)
|
||||
|
||||
4.8.0
|
||||
|
|
|
@ -163,10 +163,10 @@ QPair<StandardFeed*, QList<IconLocation>> RssParser::guessFeed(const QByteArray&
|
|||
const NetworkResult& network_res) const {
|
||||
QString xml_schema_encoding = QSL(DEFAULT_FEED_ENCODING);
|
||||
QString xml_contents_encoded;
|
||||
QString enc =
|
||||
QRegularExpression(QSL("encoding=\"([A-Z0-9\\-]+)\""), QRegularExpression::PatternOption::CaseInsensitiveOption)
|
||||
.match(content)
|
||||
.captured(1);
|
||||
QString enc = QRegularExpression(QSL("encoding=[\"']([A-Z0-9\\-]+)[\"']"),
|
||||
QRegularExpression::PatternOption::CaseInsensitiveOption)
|
||||
.match(content)
|
||||
.captured(1);
|
||||
|
||||
if (!enc.isEmpty()) {
|
||||
// Some "encoding" attribute was found get the encoding
|
||||
|
|
Loading…
Add table
Reference in a new issue