fix if LANGUAGE: was not defined and the end of the query

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5242 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
lotus 17 years ago
parent 2c23e6ad34
commit 7782a43060

@ -202,7 +202,8 @@ public class yacysearch {
int lrp = querystring.indexOf("LANGUAGE:");
String lr = "";
if (lrp >= 0) {
lr = querystring.substring(lrp + 9, lrp + 11).toLowerCase();
if (querystring.length() >= (lrp + 11))
lr = querystring.substring(lrp + 9, lrp + 11).toLowerCase();
query[0].remove("language:" + lr);
}

Loading…
Cancel
Save