Skip to content

Commit

Permalink
new filters added
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1231 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
borg-0300 committed Dec 18, 2005
1 parent 9b617bc commit b7f9adc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions source/de/anomic/plasma/plasmaHTCache.java
Expand Up @@ -466,7 +466,7 @@ public static URL getURL(File cachePath, File f) {
String s = f.toString().replace('\\', '/');
final String c = cachePath.toString().replace('\\', '/');

String protocol = "http";
String protocol = "http://";
int pos = s.lastIndexOf(c);
if (pos >= 0) {
s = s.substring(pos + c.length());
Expand All @@ -482,17 +482,17 @@ public static URL getURL(File cachePath, File f) {
if (pos >= 0) {
String temp = s.substring(pos + 1);
if (temp.startsWith("443/")) {
protocol = "https";
protocol = "https://";
} else if (temp.startsWith("21/")) {
protocol = "ftp";
protocol = "ftp://";
}

s = s.substring(0, pos) + ":" + s.substring(pos + 1);
}
if (s.endsWith("ndx")) { s = s.substring(0, s.length() - 3); }
// this.log.logFinest("plasmaHTCache: getURL: OUT=" + s);
try {
return new URL(protocol + "://" + s);
return new URL(protocol + s);
} catch (Exception e) {
return null;
}
Expand Down Expand Up @@ -522,7 +522,9 @@ public static boolean isCGI(String urlString) {
(ls.indexOf(".exe") >= 0) ||
(ls.indexOf(";jsessionid=") >= 0) ||
(ls.indexOf("sessionid/") >= 0) ||
(ls.indexOf("phpsessid=") >= 0));
(ls.indexOf("phpsessid=") >= 0) ||
(ls.indexOf("search.php?sid=") >= 0) ||
(ls.indexOf("memberlist.php?sid=") >= 0));
}

public Entry newEntry(Date initDate, int depth, URL url, String name,
Expand Down

0 comments on commit b7f9adc

Please sign in to comment.