summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/urlbar.vala2
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";