summaryrefslogtreecommitdiff
path: root/libmailutils/url
diff options
context:
space:
mode:
Diffstat (limited to 'libmailutils/url')
-rw-r--r--libmailutils/url/create.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libmailutils/url/create.c b/libmailutils/url/create.c
index 3b19a4f2c..5d1d0c501 100644
--- a/libmailutils/url/create.c
+++ b/libmailutils/url/create.c
@@ -457,7 +457,11 @@ _mu_url_create_internal (struct mu_url_ctx *ctx, mu_url_t hint)
url->flags |= MU_URL_PATH;
}
else
- rc = _mu_url_ctx_parse (ctx);
+ {
+ if (ctx->flags & MU_URL_PARSE_LOCAL)
+ scheme = "file";
+ rc = _mu_url_ctx_parse (ctx);
+ }
if (rc)
return rc;

Return to:

Send suggestions and report system problems to the System administrator.