1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 06:01:28 +00:00

It appears URLs to Windows files should look like file:///C:/..., not

file://C:/...  (three slashes after file:).
This commit is contained in:
david
2008-09-29 16:10:35 +00:00
parent ed2616909b
commit 447ace73e1

View File

@@ -184,6 +184,8 @@ char *filename_to_url(const char *filename) {
if (*p == '\\')
*p = '/';
}
/* Put a pseudo-root directory before "C:/" or whatever. */
url = "/" + url;
#endif
url = "file://" + url;