fix the scheme checking in the least intrusive way possible (avoids migrating the config)

This commit is contained in:
Martin T. H. Sandsmark
2020-08-23 14:11:53 +02:00
committed by Kurt Hindenburg
parent bf5f5aaa57
commit d10576ccf3

View File

@@ -62,7 +62,7 @@ void EscapeSequenceUrlExtractor::appendUrlText(QChar c)
void EscapeSequenceUrlExtractor::setUrl(const QString& url)
{
if (_allowedUriSchemas.contains(QUrl(url).scheme())) {
if (_allowedUriSchemas.contains(QUrl(url).scheme() + QLatin1String("://"))) {
_currentUrl.url = url;
} else {
abortUrlInput();