Mercurial > dovecot > core-2.2
changeset 20815:4caea9d3ea33
lib-http: uri: Removed unnecessary checking of percent encoding of query and fragment parts.
This is now always performed in lib/uri-util.
author | Stephan Bosch <stephan@dovecot.fi> |
---|---|
date | Sun, 02 Oct 2016 14:18:35 +0200 |
parents | 85301b82d21f |
children | 877fb5725b00 |
files | src/lib-http/http-url.c |
diffstat | 1 files changed, 0 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-http/http-url.c Sun Oct 02 14:14:48 2016 +0200 +++ b/src/lib-http/http-url.c Sun Oct 02 14:18:35 2016 +0200 @@ -301,8 +301,6 @@ 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 @@ 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) {