Skip to content

Commit

Permalink
Corrected issue where blank urls resulted in spurious returns to Keep…
Browse files Browse the repository at this point in the history
…assHTTP
  • Loading branch information
droidmonkey committed Oct 3, 2017
1 parent eb21eeb commit e7bb6c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ QString Entry::resolveUrl(const QString& url) const
{
#ifdef WITH_XC_HTTP
QString newUrl = url;
if (!url.contains("://")) {
if (!url.isEmpty() && !url.contains("://")) {
// URL doesn't have a protocol, add https by default
newUrl.prepend("https://");
}
Expand Down

0 comments on commit e7bb6c3

Please sign in to comment.