Commit 766e3d79 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make sure that index is valid

parent 6cc49743
Pipeline #93953 skipped
......@@ -189,7 +189,9 @@ QVector<QPair<QString, QString>> parseMailtoUrl(const QUrl &url)
} else {
if (queryItem.second.isEmpty()) {
// Bug 206269 => A%26B => encoded '&'
values[i - 1].second = values[i - 1].second + QStringLiteral("&") + queryItem.first;
if (i >= 1) {
values[i - 1].second = values[i - 1].second + QStringLiteral("&") + queryItem.first;
}
} else {
QPair<QString, QString> pairElement;
pairElement.first = queryItem.first.toLower();
......
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