diff options
-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"; |