*) Bugfix for robots.txt isDisallowed Check.

Setting path to "/" if it is null or empty.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@677 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 20 years ago
parent 2cd695f376
commit 0aafb83edc

@ -196,8 +196,8 @@ public class plasmaCrawlRobotsTxt {
}
public boolean isDisallowed(String path) {
if ((path == null) || (path.length() == 0)) return false;
if ((this.mem == null) || (this.disallowPathList.size() == 0)) return false;
if ((path == null) || (path.length() == 0)) path = "/";
Iterator pathIter = this.disallowPathList.iterator();
while (pathIter.hasNext()) {

@ -4,7 +4,9 @@
//(C) by Michael Peter Christen; mc@anomic.de
//first published on http://www.anomic.de
//Frankfurt, Germany, 2004
//last major change: 21.04.2005 by Martin Thelian
//
//last major change: $LastChangedDate$ by $LastChangedBy$
//Revision: $LastChangedRevision$
//
//This program is free software; you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by

Loading…
Cancel
Save