commit 9e01e83: [Minor] Do not process ftp urls using a tld hack
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Feb 25 15:49:06 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-02-25 15:47:25 +0000
URL: https://github.com/rspamd/rspamd/commit/9e01e83e440c45d6847541c4e64ae8e58a834637 (HEAD -> master)
[Minor] Do not process ftp urls using a tld hack
---
src/libserver/url.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/libserver/url.c b/src/libserver/url.c
index b371b78f4..2c396b438 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -2757,8 +2757,7 @@ url_web_start (struct url_callback_data *cb,
{
/* Check what we have found */
if (pos > cb->begin) {
- if (g_ascii_strncasecmp (pos, "www", 3) == 0 ||
- g_ascii_strncasecmp (pos, "ftp", 3) == 0) {
+ if (g_ascii_strncasecmp (pos, "www", 3) == 0) {
if (!(is_url_start (*(pos - 1)) ||
g_ascii_isspace (*(pos - 1)) ||
More information about the Commits
mailing list