diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2013-01-05 20:29:26 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2013-01-05 20:29:26 +0400 |
commit | 393a7c39ecc9224faa7c11afc32c8e74f54ea3c5 (patch) | |
tree | 4082f7e479ada5b1002ca1592ad8577f745de0f1 /src/url.c | |
parent | 6de87da477a194e566e3c672d5d41da743d6641d (diff) | |
download | rspamd-393a7c39ecc9224faa7c11afc32c8e74f54ea3c5.tar.gz rspamd-393a7c39ecc9224faa7c11afc32c8e74f54ea3c5.zip |
Add webui handler for rspamd (skeleton).
Fix url detector.
Add group option for modules options.
Some fixes in controller and rrd code.
Diffstat (limited to 'src/url.c')
-rw-r--r-- | src/url.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |