Midori.URI.parse shouldn't pass hostname with spaces

This commit is contained in:
Christian Dywan 2011-10-29 00:40:34 +02:00
parent 4d872505fb
commit cebf09e804

View file

@ -22,7 +22,8 @@ namespace Midori {
if (uri == null) if (uri == null)
return uri; return uri;
unowned string? hostname = uri.chr (-1, '/'); unowned string? hostname = uri.chr (-1, '/');
if (hostname == null || hostname[1] != '/') if (hostname == null || hostname[1] != '/'
|| hostname.chr (-1, ' ') != null)
return uri; return uri;
hostname = hostname.offset (2); hostname = hostname.offset (2);
if (&path != null) { if (&path != null) {