diff --git a/katze/midori-uri.vala b/katze/midori-uri.vala index b8cfc626..6b1a612f 100644 --- a/katze/midori-uri.vala +++ b/katze/midori-uri.vala @@ -22,7 +22,8 @@ namespace Midori { if (uri == null) return uri; unowned string? hostname = uri.chr (-1, '/'); - if (hostname == null || hostname[1] != '/') + if (hostname == null || hostname[1] != '/' + || hostname.chr (-1, ' ') != null) return uri; hostname = hostname.offset (2); if (&path != null) {