[Xfce4-commits] <exo:master> Check if uris also contain a slash (bug #9244).
Nick Schermer
noreply at xfce.org
Sun Sep 30 16:26:01 CEST 2012
Updating branch refs/heads/master
to d11199bd3d543dd0575674531d91b208f64cc8cb (commit)
from 84efa47dcb615c7b8f4050f9db7c3b49167a0e32 (commit)
commit d11199bd3d543dd0575674531d91b208f64cc8cb
Author: Nick Schermer <nick at xfce.org>
Date: Sun Sep 30 16:22:42 2012 +0200
Check if uris also contain a slash (bug #9244).
Previously uris like http: passed the test, but in a
lot of cases gio will hang on inpcomplete uris.
So enforce ":/", mailto: never works anyway.
exo/exo-string.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/exo/exo-string.c b/exo/exo-string.c
index 195c002..33f86f9 100644
--- a/exo/exo-string.c
+++ b/exo/exo-string.c
@@ -429,7 +429,7 @@ exo_str_looks_like_an_uri (const gchar *str)
for (++s; g_ascii_isalnum (*s) || *s == '+' || *s == '-' || *s == '.'; ++s);
/* <scheme> must be followed by ":" */
- return (*s == ':');
+ return (*s == ':' && *(s+1) == '/');
}
return FALSE;
More information about the Xfce4-commits
mailing list