Fix parsing local URLs.
* include/mailutils/url.h (MU_URL_PARSE_LOCAL): New flag. * libmailutils/tests/url-parse.c (parse_kwtab): New flag "local". * libmailutils/tests/url.at: Add new tests * libmailutils/url/create.c (_mu_url_ctx_parse_host): Skip parsing host part if MU_URL_PARSE_LOCAL is set. (_mu_url_create_internal): Initialize rc. If MU_URL_PARSE_SLASH is set and URL begins with "./" assume it is file. If either MU_URL_PARSE_SLASH or MU_URL_PARSE_PIPE are given and the URL is diagnosed as file or pipe, prever the scheme from hints.
Showing
4 changed files
with
77 additions
and
12 deletions
-
Please register or sign in to post a comment