summaryrefslogtreecommitdiff
path: root/src/gmutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmutil.c')
-rw-r--r--src/gmutil.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gmutil.c b/src/gmutil.c
index 557a82f8..94f00ce1 100644
--- a/src/gmutil.c
+++ b/src/gmutil.c
@@ -192,7 +192,10 @@ const iString *absoluteUrl_String(const iString *d, const iString *urlMaybeRelat
192iString *makeFileUrl_String(const iString *localFilePath) { 192iString *makeFileUrl_String(const iString *localFilePath) {
193 iString *url = cleaned_Path(localFilePath); 193 iString *url = cleaned_Path(localFilePath);
194 replace_Block(&url->chars, '\\', '/'); /* in case it's a Windows path */ 194 replace_Block(&url->chars, '\\', '/'); /* in case it's a Windows path */
195 set_String(url, collect_String(urlEncodeExclude_String(url, "/"))); 195 set_String(url, collect_String(urlEncodeExclude_String(url, "/:")));
196#if defined (iPlatformMsys)
197 prependChar_String(url, '/'); /* three slashes */
198#endif
196 prependCStr_String(url, "file://"); 199 prependCStr_String(url, "file://");
197 return url; 200 return url;
198} 201}