[Xfce4-commits] <midori:master> Midori.URI.parse shouldn't pass hostname with spaces
Christian Dywan
noreply at xfce.org
Sat Oct 29 00:46:01 CEST 2011
Updating branch refs/heads/master
to cebf09e804c1cc61abad897993e254e02f70ce30 (commit)
from 4d872505fb5f09cafa75185787b85b7b04d6cb30 (commit)
commit cebf09e804c1cc61abad897993e254e02f70ce30
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Oct 29 00:40:34 2011 +0200
Midori.URI.parse shouldn't pass hostname with spaces
katze/midori-uri.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/katze/midori-uri.vala b/katze/midori-uri.vala
index b8cfc62..6b1a612 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) {
More information about the Xfce4-commits
mailing list