diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-31 17:41:19 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-31 17:41:19 +0100 |
commit | 7c09818f4165382cbd65a6a33b655a2def0ffc65 (patch) | |
tree | 11a292a170d91d0f15caed2f14b5ec97bedeac2b /src/rspamd_proxy.c | |
parent | 4e26d2d0567d90ef85c4415ae207ecb3b235d3b4 (diff) | |
download | rspamd-7c09818f4165382cbd65a6a33b655a2def0ffc65.tar.gz rspamd-7c09818f4165382cbd65a6a33b655a2def0ffc65.zip |
[Minor] Add macros to access strings data
Diffstat (limited to 'src/rspamd_proxy.c')
-rw-r--r-- | src/rspamd_proxy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index fc4b43bea..a4e98a075 100644 --- a/src/rspamd_proxy.c +++ b/src/rspamd_proxy.c @@ -1229,7 +1229,8 @@ proxy_check_file (struct rspamd_http_message *msg, } else { /* Need to parse query URL */ - if (http_parser_parse_url (msg->url->str, msg->url->len, 0, &u) != 0) { + if (http_parser_parse_url (RSPAMD_FSTRING_DATA (msg->url), + RSPAMD_FSTRING_LEN (msg->url), 0, &u) != 0) { msg_err_session ("bad request url: %V", msg->url); return FALSE; @@ -1258,7 +1259,7 @@ proxy_check_file (struct rspamd_http_message *msg, } /* We need to create a new URL with file attribute removed */ - new_url = rspamd_fstring_new_init (msg->url->str, + new_url = rspamd_fstring_new_init (RSPAMD_FSTRING_DATA (msg->url), u.field_data[UF_QUERY].off); new_url = rspamd_fstring_append (new_url, "?", 1); |