Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

bugfix in js

allo9bed90f8dca1
diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.js
index 192a661a1..ef648869e 100644
--- a/htroot/js/yacysearch.js
+++ b/htroot/js/yacysearch.js
@@ -56,7 +56,7 @@ function handleState(req) {
tmpNode.appendChild(tmpNode2);
span.appendChild(tmpNode)
- snippetText=substring(pos2+4)
+ snippetText=snippetText.substring(pos2+4)
var pos=snippetText.indexOf("<b>");
var pos2=snippetText.indexOf("</b>");
}