summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/urlbar.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/urlbar.vala b/core/urlbar.vala
index 2d217861..2f37b3e5 100644
--- a/core/urlbar.vala
+++ b/core/urlbar.vala
@@ -177,7 +177,8 @@ namespace Midori {
}
string? magic_uri (string text) {
- if (" " in text) {
+ // Leading or trailing space means search
+ if (text.has_prefix (" ") || text.has_suffix (" ")) {
return null;
} else if (Path.is_absolute (text)) {
try {