update for ftp urls

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2531 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 19 years ago
parent 06b1365066
commit f0529fe53e

@ -68,7 +68,10 @@ public class getpageinfo_p {
actions=(String)post.get("actions");
ArrayList content;
String url=(String) post.get("url");
if (!url.toLowerCase().startsWith("http://")) {
if(url.toLowerCase().startsWith("ftp://")){
prop.put("robots-allowed", 1);
prop.put("title", "FTP: "+url);
}else if (!url.toLowerCase().startsWith("http://")) {
url = "http://" + url;
}
if (actions.indexOf("title")>=0) {

Loading…
Cancel
Save