Skip to content

Commit

Permalink
last commit removed
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1301 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
borg-0300 committed Jan 9, 2006
1 parent 3abd843 commit 23a3969
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/de/anomic/htmlFilter/htmlFilterContentScraper.java
Expand Up @@ -160,7 +160,7 @@ public static String urlNormalform(URL url) {
} 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;
Expand All @@ -172,9 +172,6 @@ public static String urlNormalform(URL url) {
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;
}
Expand Down

0 comments on commit 23a3969

Please sign in to comment.