mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
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:
parent
3abd843cdb
commit
23a39698a7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user