last commit removed

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1301 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
borg-0300 2006-01-09 19:07:11 +00:00
parent 3abd843cdb
commit 23a39698a7

View File

@ -160,7 +160,7 @@ public class htmlFilterContentScraper extends htmlFilterAbstractScraper implemen
} else if (url.getProtocol().equals("https")) {
if (url.getPort() < 0 || url.getPort() == 443) { defaultPort = true; }
}
String path = url.getPath();
String path = url.getFile();
// (this is different from previous normal forms where a '/' must not appear in root paths; here it must appear. Makes everything easier.)
if (path.length() == 0 || path.charAt(0) != '/') path = "/" + path;
@ -172,9 +172,6 @@ public class htmlFilterContentScraper extends htmlFilterAbstractScraper implemen
matcher.reset(path);
}
String query = url.getQuery().replaceAll("[\"\\/:*?<>|]", "_");
if (query != null) { path = path.concat("_").concat(query); }
if (defaultPort) return url.getProtocol() + "://" + url.getHost() + path;
return url.getProtocol() + "://" + url.getHost() + ":" + url.getPort() + path;
}