Skip to content

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

fix for display error in Safari: safari is obviously sensitive against spaces in 'x --'; 'x--' worked. see http://www.yacy-forum.de/viewtopic.php?p=37306#37306

orbiterc6ee6f88aa10
diff --git a/htroot/yacysearch.html b/htroot/yacysearch.html
index a1aa7eda7..bf4aad42a 100644
--- a/htroot/yacysearch.html
+++ b/htroot/yacysearch.html
@@ -210,9 +210,10 @@ document.getElementById("Enter").value = "search again - catch up more links";
<script type="text/javascript">
var urls = "#{results}##[urlname]# #{/results}#".split(" ");
// the last element is always empty because the split gets a space at the end of the string
- urls.length --;
- if(urls.length > 0)
+ urls.length--;
+ if(urls.length > 0) {
AllImageSnippets(urls, "#[former]#");
+ }
</script>
<br style="clear:left;" />
::<!-- type 3: image thumbnail list for one single url -->