]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: uri: Removed unnecessary checking of percent encoding of query and fragment...
authorStephan Bosch <stephan@dovecot.fi>
Sun, 2 Oct 2016 12:18:35 +0000 (14:18 +0200)
committerGitLab <gitlab@git.dovecot.net>
Mon, 3 Oct 2016 08:53:54 +0000 (11:53 +0300)
This is now always performed in lib/uri-util.

src/lib-http/http-url.c

index ffac19d7dfef4a5c773556b727399778266d5325..7133d268796ae29e30dbab1cd3ee851014eef560 100644 (file)
@@ -295,8 +295,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) {
@@ -311,8 +309,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) {