]> spindle.queued.net Git - midori/commitdiff
Midori.URI.parse shouldn't pass hostname with spaces
authorChristian Dywan <christian@twotoasts.de>
Fri, 28 Oct 2011 22:40:34 +0000 (00:40 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 28 Oct 2011 22:40:34 +0000 (00:40 +0200)
katze/midori-uri.vala

index b8cfc6265c2f70e2e1ce041f7ff50a1d036d4840..6b1a612fb471b1b6b8752cd8d733b7200ed7641f 100644 (file)
@@ -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) {