mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
*) bugfix for ArrayIndexOutOfBoundsException in robots-parser (thanks to low012)
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3739 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
b30e64daab
commit
b1680ab71f
|
@ -110,7 +110,7 @@ public final class robotsParser{
|
|||
}
|
||||
|
||||
public static Object[] parse(byte[] robotsTxt) throws IOException {
|
||||
if ((robotsTxt == null)||(robotsTxt.length == 0)) return new Object[]{new ArrayList(0),null};
|
||||
if ((robotsTxt == null)||(robotsTxt.length == 0)) return new Object[]{new ArrayList(0),null,null};
|
||||
ByteArrayInputStream bin = new ByteArrayInputStream(robotsTxt);
|
||||
BufferedReader reader = new BufferedReader(new InputStreamReader(bin));
|
||||
return parse(reader);
|
||||
|
|
Loading…
Reference in New Issue
Block a user