Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix: malformed filename in image search fix for http://mantis.tokeek.de/view.php?id=533
reger11b21308c099
diff --git a/htroot/yacysearchitem.java b/htroot/yacysearchitem.javaindex 552801aac..9fd353c61 100644--- a/htroot/yacysearchitem.java+++ b/htroot/yacysearchitem.java@@ -307,7 +307,7 @@ public class yacysearchitem {try {image = theSearch.oneImageResult(item, timeout);final String imageUrlstring = image.imageUrl.toNormalform(true);- final String imageUrlExt = MultiProtocolURL.getFileExtension(imageUrlstring);+ final String imageUrlExt = MultiProtocolURL.getFileExtension(image.imageUrl.getFileName());final String target = sb.getConfig(imageUrlstring.matches(target_special_pattern) ? SwitchboardConstants.SEARCH_TARGET_SPECIAL : SwitchboardConstants.SEARCH_TARGET_DEFAULT, "_self");final String license = URLLicense.aquireLicense(image.imageUrl); // this is just the license key to get the image forwarded through the YaCy thumbnail viewer, not an actual lawful license