aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/http.c')
-rw-r--r--src/libutil/http.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c
index 72134e22d..f6f08e376 100644
--- a/src/libutil/http.c
+++ b/src/libutil/http.c
@@ -2466,6 +2466,15 @@ rspamd_http_message_parse_query (struct rspamd_http_message *msg)
value_tok->len = rspamd_decode_url (value->str,
value->str,
value->len);
+ /* Detect quotes for value */
+ if (value_tok->begin[0] == '"') {
+ memmove (value->str, value->str + 1,
+ value_tok->len - 1);
+ value_tok->len --;
+ }
+ if (value_tok->begin[value_tok->len - 1] == '"') {
+ value_tok->len --;
+ }
}
else {
value = rspamd_fstring_new_init ("", 0);