Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1037 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
borg-0300 committed Nov 6, 2005
1 parent dd24f02 commit 17d2830
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/de/anomic/htmlFilter/htmlFilterContentScraper.java
Expand Up @@ -110,7 +110,7 @@ public static String urlNormalform(URL url) {
}

public static String urlNormalform(String us) {
// serverLog.logFiner("htmlFilter", "urlNormalform: IN=" + us);
serverLog.logFiner("htmlFilter", "urlNormalform: IN=" + us);
if (us == null) { return null; }
if (us.length() == 0) { return null; }

Expand All @@ -125,28 +125,28 @@ public static String urlNormalform(String us) {
if (us.startsWith("https")) {
if (us.endsWith(":443")) {
us = us.substring(0, us.length() - 4);
// serverLog.logFinest("htmlFilter", "urlNormalform: :443=" + us);
serverLog.logFinest("htmlFilter", "urlNormalform: :443=" + us);
} else {
cpos = us.indexOf(":443/");
if (cpos >= 0) {
us = us.substring(0, cpos).concat(us.substring(cpos + 4));
// serverLog.logFinest("htmlFilter", "urlNormalform: :443/=" + us);
serverLog.logFinest("htmlFilter", "urlNormalform: :443/=" + us);
}
}
} else if (us.startsWith("http")) {
if (us.endsWith(":80")) {
us = us.substring(0, us.length() - 3);
// serverLog.logFinest("htmlFilter", "urlNormalform: :80=" + us);
serverLog.logFinest("htmlFilter", "urlNormalform: :80=" + us);
} else {
cpos = us.indexOf(":80/");
if (cpos >= 0) {
us = us.substring(0, cpos).concat(us.substring(cpos + 3));
// serverLog.logFinest("htmlFilter", "urlNormalform: :80/=" + us);
serverLog.logFinest("htmlFilter", "urlNormalform: :80/=" + us);
}
}
}
if (((us.endsWith("/")) && (us.lastIndexOf('/', us.length() - 2) < 8))) us = us.substring(0, us.length() - 1);
// serverLog.logFine("htmlFilter", "urlNormalform: OUT=" + us);
serverLog.logFine("htmlFilter", "urlNormalform: OUT=" + us);
return us;
}

Expand Down

0 comments on commit 17d2830

Please sign in to comment.