diff options
author | Christian Dywan <christian@twotoasts.de> | 2019-02-18 22:29:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-18 22:29:16 +0100 |
commit | 738636d6677272179ff8655595b4dfa1805ebb7c (patch) | |
tree | 6a6c87030076277ce09f2900e66951d9a72e478a | |
parent | e151b51173c38d014c79c8ab0b4735ed2ed9a009 (diff) | |
download | midori-git-738636d6677272179ff8655595b4dfa1805ebb7c.tar.gz |
localhost:1234 should be treated the same as localhost (#259)
Fixes: #254
-rw-r--r-- | core/urlbar.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/urlbar.vala b/core/urlbar.vala index 9f86445a..ea80ab37 100644 --- a/core/urlbar.vala +++ b/core/urlbar.vala @@ -196,7 +196,7 @@ namespace Midori { return text; } else if (is_ip_address (text)) { return "http://" + text; - } else if (text == "localhost" || "." in text) { + } else if (text.has_prefix ("localhost") || "." in text) { return "http://" + text; } else if (text == "") { return "about:blank"; |