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:
|
Fixed:
|
||||||
* Enhanced QSS for tooltips for better readability. (#1637)
|
* Enhanced QSS for tooltips for better readability. (#1637)
|
||||||
|
* RSS feed encoding detection was prone to errors. (#1664)
|
||||||
* `Localization` page now displays correctly. (#1611)
|
* `Localization` page now displays correctly. (#1611)
|
||||||
|
|
||||||
4.8.0
|
4.8.0
|
||||||
|
|
|
@ -163,8 +163,8 @@ QPair<StandardFeed*, QList<IconLocation>> RssParser::guessFeed(const QByteArray&
|
||||||
const NetworkResult& network_res) const {
|
const NetworkResult& network_res) const {
|
||||||
QString xml_schema_encoding = QSL(DEFAULT_FEED_ENCODING);
|
QString xml_schema_encoding = QSL(DEFAULT_FEED_ENCODING);
|
||||||
QString xml_contents_encoded;
|
QString xml_contents_encoded;
|
||||||
QString enc =
|
QString enc = QRegularExpression(QSL("encoding=[\"']([A-Z0-9\\-]+)[\"']"),
|
||||||
QRegularExpression(QSL("encoding=\"([A-Z0-9\\-]+)\""), QRegularExpression::PatternOption::CaseInsensitiveOption)
|
QRegularExpression::PatternOption::CaseInsensitiveOption)
|
||||||
.match(content)
|
.match(content)
|
||||||
.captured(1);
|
.captured(1);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue