Skip to content

Commit

Permalink
Adding changes by borg-0300 from http://www.yacy-forum.de/viewtopic.p…
Browse files Browse the repository at this point in the history
…hp?t=997

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@565 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
rramthun committed Aug 20, 2005
1 parent ecfdc49 commit 4cb382d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/de/anomic/htmlFilter/htmlFilterContentScraper.java
Expand Up @@ -113,6 +113,8 @@ public static String urlNormalform(String us) {
int p;
if ((p = us.indexOf("#")) >= 0) us = us.substring(0, p);
if (us.endsWith(":80")) us = us.substring(0, us.length() - 3);
p = us.indexOf(":80/");
if (p >= 0) us = us.substring(0,p).concat(us.substring(p + 3));
if (((us.endsWith("/")) && (us.lastIndexOf('/', us.length() - 2) < 8))) us = us.substring(0, us.length() - 1);
return us;
}
Expand Down
2 changes: 2 additions & 0 deletions source/de/anomic/plasma/plasmaParser.java
Expand Up @@ -616,6 +616,8 @@ public static String urlNormalform(String us) {
int p;
if ((p = us.indexOf("#")) >= 0) us = us.substring(0, p);
if (us.endsWith(":80")) us = us.substring(0, us.length() - 3);
p = us.indexOf(":80/");
if (p >= 0) us = us.substring(0,p).concat(us.substring(p + 3));
if (((us.endsWith("/")) && (us.lastIndexOf('/', us.length() - 2) < 8))) us = us.substring(0, us.length() - 1);
return us;
}
Expand Down

0 comments on commit 4cb382d

Please sign in to comment.