On Sun, 01 Nov 2009 16:47:30 +0000, John-Mark Bell wrote: > File URIs take the form: > > file://<hostname>/<path> > > However, the hostname may be completely omitted, and localhost inferred. > The '/' between the hostname and the path may not be omitted, even if > the hostname is. > > NetSurf does not support opening files on hosts that are not the local > host. Additionally, it omits the hostname part, as it's unnecessary.
Fair enough, no problem with that. > Therefore, all file URIs in NetSurf are of the form: > > file:///<path> > > This is correct, per spec. The problem is, as NetSurf is assuming the localhost part, when it actually encounters localhost as part of the path, it handles it incorrectly, and you end up with file:///localhost/. This wouldn't normally be a problem, but as the old Amiga browsers all used file://localhost/ there are quite a number of scripts and documentation launchers which don't work with NetSurf without this change. The core should probably be stripping out the hostname part rather than adding additional slashes in front of it. I can have a go at fixing this in the core, but I don't want to break other platforms when it's probably only bothering me! Chris
