mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +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:
parent
ed2616909b
commit
447ace73e1
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue