diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-23 13:27:45 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-23 13:27:45 +0000 |
commit | d050686aee0ad85364ceae6185c1e2698feb3e6e (patch) | |
tree | 48b7b47b1f55b27a87d6ebcf3a62f5bc2a75ad72 /src/libserver/task.c | |
parent | 1762eb9af61997d9acc3017e2e0fc6153b09acc2 (diff) | |
download | rspamd-d050686aee0ad85364ceae6185c1e2698feb3e6e.tar.gz rspamd-d050686aee0ad85364ceae6185c1e2698feb3e6e.zip |
[Feature] Add url encoding function
Diffstat (limited to 'src/libserver/task.c')
-rw-r--r-- | src/libserver/task.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c index 75c44f21a..f02665afd 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -326,7 +326,7 @@ rspamd_task_load_message (struct rspamd_task *task, r = rspamd_strlcpy (filepath, tok->begin, MIN (sizeof (filepath), tok->len + 1)); - rspamd_decode_url (filepath, filepath, r + 1); + rspamd_url_decode (filepath, filepath, r + 1); flen = strlen (filepath); if (filepath[0] == '"' && flen > 2) { @@ -424,7 +424,7 @@ rspamd_task_load_message (struct rspamd_task *task, r = rspamd_strlcpy (filepath, tok->begin, MIN (sizeof (filepath), tok->len + 1)); - rspamd_decode_url (filepath, filepath, r + 1); + rspamd_url_decode (filepath, filepath, r + 1); flen = strlen (filepath); if (filepath[0] == '"' && flen > 2) { |