* i2psnark: Fix details page on Windows

This commit is contained in:
zzz
2013-05-31 23:19:43 +00:00
parent 78c17ba353
commit e54465b226

View File

@ -38,6 +38,7 @@ import net.i2p.I2PAppContext;
import net.i2p.data.ByteArray; import net.i2p.data.ByteArray;
import net.i2p.util.ByteCache; import net.i2p.util.ByteCache;
import net.i2p.util.Log; import net.i2p.util.Log;
import net.i2p.util.SystemVersion;
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
@ -528,7 +529,10 @@ class BasicServlet extends HttpServlet
protected static String addPaths(String base, String path) { protected static String addPaths(String base, String path) {
if (path == null) if (path == null)
return base; return base;
return (new File(base, path)).toString(); String rv = (new File(base, path)).toString();
if (SystemVersion.isWindows())
rv = rv.replace("\\", "/");
return rv;
} }
/** /**