From cebf09e804c1cc61abad897993e254e02f70ce30 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 29 Oct 2011 00:40:34 +0200 Subject: [PATCH] Midori.URI.parse shouldn't pass hostname with spaces --- katze/midori-uri.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.39.5