From a52f3a597e1493e187536c1d44be88a3ce20b87a Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Fri, 27 Sep 2013 15:09:04 +0200 Subject: [PATCH] fix for canonical-from-http-header feature --- source/net/yacy/search/schema/CollectionConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/search/schema/CollectionConfiguration.java b/source/net/yacy/search/schema/CollectionConfiguration.java index c07cdf09e..66751df11 100644 --- a/source/net/yacy/search/schema/CollectionConfiguration.java +++ b/source/net/yacy/search/schema/CollectionConfiguration.java @@ -700,7 +700,7 @@ public class CollectionConfiguration extends SchemaConfiguration implements Seri link = link.substring(0, p).trim(); p = link.indexOf('<'); int q = link.lastIndexOf('>'); - if (p > 0 && q > 0) { + if (p >= 0 && q > 0) { link = link.substring(p + 1, q); try { canonical = new DigestURL(link);