Explicit QString instantiation

This commit is contained in:
cbclemmer 2023-08-20 14:40:58 -05:00
parent 45c3e00d9c
commit 27b315018c

View file

@ -116,7 +116,7 @@ bool startsWithPort(QStringView string)
// Simple sanitization method to strip characters that are not recognized by RFC 3986 // Simple sanitization method to strip characters that are not recognized by RFC 3986
QString sanitizeUrl(const QString &unparsedString) QString sanitizeUrl(const QString &unparsedString)
{ {
const QString allowedSpecialCharacters = "!#&+/:=?@-_."; const QString allowedSpecialCharacters = QString("!#&+/:=?@-_.");
QString sanitizedUrl; QString sanitizedUrl;
for (const QChar &c : unparsedString) for (const QChar &c : unparsedString)