|
|
|
@ -243,7 +243,7 @@ public class DigestURL extends MultiProtocolURL implements Serializable {
|
|
|
|
|
|
|
|
|
|
// find rootpath
|
|
|
|
|
final String normalizedPath;
|
|
|
|
|
if (this.isFile() && this.path.indexOf('\\') > -1) // for file protocol normalize path to java notation
|
|
|
|
|
if (this.isFile() && this.path.indexOf('\\') >= 0) // for file protocol normalize path to java notation
|
|
|
|
|
normalizedPath = this.path.replace('\\','/'); // replace possible Windows pathseparator
|
|
|
|
|
else
|
|
|
|
|
normalizedPath = this.path;
|
|
|
|
@ -297,7 +297,6 @@ public class DigestURL extends MultiProtocolURL implements Serializable {
|
|
|
|
|
return Base64Order.enhancedCoder.encode(Digest.encodeMD5Raw(sb.toString())).charAt(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public final static Pattern rootPattern = Pattern.compile("/|/\\?|/index.htm(l?)|/index.php|/home.htm(l?)|/home.php|/default.htm(l?)|/default.php");
|
|
|
|
|
|
|
|
|
|
private static final String hosthash5(final String protocol, final String host, final int port) {
|
|
|
|
|
if (host == null) {
|
|
|
|
|