From 5af82e9ff47ec7362258bfbdac1327077a8b3c1a Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 20 May 2014 15:49:02 +0200 Subject: [PATCH] fixed unescape code. --- src/worker-auth.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/worker-auth.c b/src/worker-auth.c index 3c6f192a..3552e9cf 100644 --- a/src/worker-auth.c +++ b/src/worker-auth.c @@ -828,9 +828,10 @@ int parse_reply(worker_st * ws, char *body, unsigned body_length, char temp1[64]; char temp2[64]; unsigned temp2_len, temp1_len; - unsigned len; + unsigned len, xml = 0; if (memmem(body, body_length, "req.body, *value, len, NULL); + if (xml) + *value = unescape_html(ws->req.body, *value, len, NULL); + else + *value = unescape_url(ws->req.body, *value, len, NULL); if (*value == NULL) { oclog(ws, LOG_ERR,