[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#8273) file:// URLs broken on Windows

Full_Name: Howard Chu
Version: 2.4
OS: Win32
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (
Submitted by: hyc

file URLs with absolute paths are parsed incorrectly on Windows. The current
code expects an absolute path in Unix form:

In our test suites we just concatenate "file://" with an absolute path.

On Windowsn ababsolute path starts with a drive letter and a colon, so our test
suite doing simple concatenation uses

This is actually invalid; the proper form would be

but the current parser won't do the right thing for either form.

It MUST be fixed to accept the latter form with 3 slashes. I'm inclined to also
accept the form with 2 slashes, to avoid hacking up our test suite to handle
this case.