mirror of
https://github.com/nmap/nmap.git
synced 2025-12-11 02:09:03 +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:
@@ -184,6 +184,8 @@ char *filename_to_url(const char *filename) {
|
|||||||
if (*p == '\\')
|
if (*p == '\\')
|
||||||
*p = '/';
|
*p = '/';
|
||||||
}
|
}
|
||||||
|
/* Put a pseudo-root directory before "C:/" or whatever. */
|
||||||
|
url = "/" + url;
|
||||||
#endif
|
#endif
|
||||||
url = "file://" + url;
|
url = "file://" + url;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user