remove unused rootpattern, leftover from commit

9a5ab4e2c1 (diff-d2b184283abed53ae260fc9eabdaef40)
pull/77/head
reger 8 years ago
parent 6f8c3ccea4
commit e73c1eea8c

@ -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) {

Loading…
Cancel
Save