vpupkin / proxy-vole

Automatically exported from code.google.com/p/proxy-vole
0 stars 0 forks source link

Support ill formatted UNC paths containing backslashes #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We've seen some machines with PAC configuration where the url to the PAC file 
is of the form:

file://\\servername\path\to\file.pac

These can't be read because the backslashes are probably not supported by 
windows. 

Since it's difficult to have control over the machines where the software is 
installed, any change of being resilient to this configuration error by 
replacing all backslashes with forward slashes in the PAC url?

Original issue reported on code.google.com by bloop...@gmail.com on 26 Apr 2013 at 2:58

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Based on the 20121203 source code, I would fix this in 
UrlPacScriptSource.java:79

file = new File(new URL(scriptUrl).toURI());

would become:

file = new File(new URL(scriptUrl.replaceAll("\\\\", "/")).toURI());

Original comment by bloop...@gmail.com on 26 Apr 2013 at 3:04