diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-03 20:10:10 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-03 20:10:10 +0400 |
commit | c1fdf1e5a155e244a076bd33ed05a2a1c0f7f014 (patch) | |
tree | d63f59d9d4e642d73ed40dac0114c94ee919582f /src/html.c | |
parent | 2f59f5a86e830856eb9472eb508c93546e05f21c (diff) | |
download | rspamd-c1fdf1e5a155e244a076bd33ed05a2a1c0f7f014.tar.gz rspamd-c1fdf1e5a155e244a076bd33ed05a2a1c0f7f014.zip |
* Add hack to disallow misformed urls
Diffstat (limited to 'src/html.c')
-rw-r--r-- | src/html.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html.c b/src/html.c index 337bbff4e..6e7b683e9 100644 --- a/src/html.c +++ b/src/html.c @@ -325,7 +325,7 @@ parse_tag_url (struct worker_task *task, struct mime_text_part *part, tag_id_t i c++; } - if (len == 0) { + if (len == 0 || g_ascii_strncasecmp (c, "http://", sizeof ("http://") - 1) != 0) { return; } |