aboutsummaryrefslogtreecommitdiffstats
path: root/src/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/url.c')
-rw-r--r--src/url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/url.c b/src/url.c
index f2e4954e2..415fd4bf6 100644
--- a/src/url.c
+++ b/src/url.c
@@ -1234,8 +1234,8 @@ url_tld_start (const gchar *begin, const gchar *end, const gchar *pos, url_match
while (p >= begin) {
if ((!is_domain (*p) && *p != '.') || g_ascii_isspace (*p)) {
p ++;
- if (*p == '.') {
- /* Urls cannot start with . */
+ if (!g_ascii_isalnum (*p)) {
+ /* Urls cannot start with strange symbols */
return FALSE;
}
match->m_begin = p;