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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user