Commit 63ecd22a authored by Laurent Montel's avatar Laurent Montel
Browse files

Remove empty part

parent 04b6ec03
......@@ -33,7 +33,7 @@ bool DMARCInfo::parseDMARC(const QString &key)
}
QString cleanKey = key;
cleanKey.replace(QLatin1String("; "), QLatin1String(";"));
const QStringList items = cleanKey.split(QLatin1Char(';'));
const QStringList items = cleanKey.split(QLatin1Char(';'), QString::SkipEmptyParts);
for (int i = 0; i < items.count(); ++i) {
const QString elem = items.at(i).trimmed();
if (elem.startsWith(QLatin1String("v="))) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment