mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
Adding changes by borg-0300 from http://www.yacy-forum.de/viewtopic.php?t=997
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@565 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
ecfdc4928a
commit
4cb382decb
|
@ -113,6 +113,8 @@ public class htmlFilterContentScraper extends htmlFilterAbstractScraper implemen
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -616,6 +616,8 @@ public final class plasmaParser {
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user