mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 04:36:34 +01:00
[Fix] Url with only query is valid too
mailto:?subject=foo should be treated as valid url too Closes #1112
This commit is contained in:
parent
ffd560142b
commit
7e088d0f1d
@ -240,7 +240,7 @@ QWebElement WebView::activeElement() const
|
||||
bool WebView::isUrlValid(const QUrl &url)
|
||||
{
|
||||
// Valid url must have scheme and actually contains something (therefore scheme:// is invalid)
|
||||
return url.isValid() && !url.scheme().isEmpty() && (!url.host().isEmpty() || !url.path().isEmpty());
|
||||
return url.isValid() && !url.scheme().isEmpty() && (!url.host().isEmpty() || !url.path().isEmpty() || url.hasQuery());
|
||||
}
|
||||
|
||||
QUrl WebView::guessUrlFromString(const QString &string)
|
||||
|
Loading…
Reference in New Issue
Block a user