From: Christian Dywan Date: Fri, 28 Oct 2011 22:40:34 +0000 (+0200) Subject: Midori.URI.parse shouldn't pass hostname with spaces X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cebf09e804c1cc61abad897993e254e02f70ce30;p=midori Midori.URI.parse shouldn't pass hostname with spaces --- 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) {