Skip to content

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

fix to unbalanced tag and license for null objects

Michael Peter Christenc20fa3640d50
diff --git a/htroot/yacysearch.html b/htroot/yacysearch.html
index 80b206005..842b0e4ff 100644
--- a/htroot/yacysearch.html
+++ b/htroot/yacysearch.html
@@ -69,10 +69,9 @@
<div id="api">
<script type="text/javascript">
//<![CDATA[
-document.write("\<a href=\"yacysearch.rss?" + window.location.search.substring(1) + "\"\>")
+document.write("\<a href=\"yacysearch.rss?" + window.location.search.substring(1) + "\"\><img src=\"env/grafics/api.png\" width=\"60\" height=\"40\" alt=\"API\" /></a>")
//]]>
</script>
-<img src="env/grafics/api.png" width="60" height="40" alt="API" /></a>
<span>This search result can also be retrieved as RSS/<a href="http://www.opensearch.org">opensearch</a> output.
The query format is similar to <a href="http://www.loc.gov/standards/sru/">SRU</a>.
Click the API icon to see an example call to the search rss API.
diff --git a/source/net/yacy/data/URLLicense.java b/source/net/yacy/data/URLLicense.java
index c63c2aeca..63153fabe 100644
--- a/source/net/yacy/data/URLLicense.java
+++ b/source/net/yacy/data/URLLicense.java
@@ -42,6 +42,7 @@ public class URLLicense {
private static final Map<String, String> permissions = Collections.synchronizedMap(new SizeLimitedMap<String, String>(maxQueue));
public static String aquireLicense(final DigestURI url) {
+ if (url == null) return "";
// generate license key
String license = ASCII.String(url.hash());
// store reference to url with license key