Midori.URI.parse shouldn't pass hostname with spaces
This commit is contained in:
parent
4d872505fb
commit
cebf09e804
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue