diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-28 17:50:19 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-28 17:50:19 +0200 |
commit | 2583e020e7f1f1036f6df8f5b93668e7a0187d60 (patch) | |
tree | 47228a8438f6ea72816cbabeb04de2acd9c46843 | |
parent | 6bd8e679a86d75aa65fba4afeca7e75de7b34a03 (diff) |
GmUtil: File paths must be absolute for URLs
-rw-r--r-- | src/gmutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gmutil.c b/src/gmutil.c index 2b40367d..e3121b1f 100644 --- a/src/gmutil.c +++ b/src/gmutil.c | |||
@@ -365,7 +365,7 @@ void punyEncodeUrlHost_String(iString *d) { | |||
365 | } | 365 | } |
366 | 366 | ||
367 | iString *makeFileUrl_String(const iString *localFilePath) { | 367 | iString *makeFileUrl_String(const iString *localFilePath) { |
368 | iString *url = cleaned_Path(localFilePath); | 368 | iString *url = makeAbsolute_Path(collect_String(cleaned_Path(localFilePath))); |
369 | replace_Block(&url->chars, '\\', '/'); /* in case it's a Windows path */ | 369 | replace_Block(&url->chars, '\\', '/'); /* in case it's a Windows path */ |
370 | set_String(url, collect_String(urlEncodeExclude_String(url, "/:"))); | 370 | set_String(url, collect_String(urlEncodeExclude_String(url, "/:"))); |
371 | #if defined (iPlatformMsys) | 371 | #if defined (iPlatformMsys) |