From 4cdd921730bf70061380a0db4049e2ff3a4a02ae Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Sun, 2 Oct 2016 14:18:35 +0200 Subject: [PATCH] lib-http: uri: Removed unnecessary checking of percent encoding of query and fragment parts. This is now always performed in lib/uri-util. --- src/lib-http/http-url.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib-http/http-url.c b/src/lib-http/http-url.c index 5306d14bc0..7455e4a047 100644 --- a/src/lib-http/http-url.c +++ b/src/lib-http/http-url.c @@ -301,8 +301,6 @@ static bool http_url_do_parse(struct http_url_parser *url_parser) if ((ret = uri_parse_query(parser, &part)) < 0) return FALSE; if (ret > 0) { - if (!uri_data_decode(parser, part, NULL, NULL)) // check only - return FALSE; if (url != NULL) url->enc_query = p_strdup(parser->pool, part); } else if (relative && !have_path && url != NULL) { @@ -317,8 +315,6 @@ static bool http_url_do_parse(struct http_url_parser *url_parser) parser->error = "URL fragment not allowed for HTTP URL in this context"; return FALSE; } - if (!uri_data_decode(parser, part, NULL, NULL)) // check only - return FALSE; if (url != NULL) url->enc_fragment = p_strdup(parser->pool, part); } else if (relative && !have_path && url != NULL) {