[freenet-cvs] r11162 - trunk/freenet/src/freenet/clients/http

toad at freenetproject.org toad at freenetproject.org
Fri Dec 1 01:29:32 UTC 2006


Author: toad
Date: 2006-12-01 01:29:31 +0000 (Fri, 01 Dec 2006)
New Revision: 11162

Modified:
   trunk/freenet/src/freenet/clients/http/FProxyToadlet.java
Log:
Force or force-download overrides.

Modified: trunk/freenet/src/freenet/clients/http/FProxyToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/FProxyToadlet.java	2006-12-01 01:28:40 UTC (rev 11161)
+++ trunk/freenet/src/freenet/clients/http/FProxyToadlet.java	2006-12-01 01:29:31 UTC (rev 11162)
@@ -100,9 +100,7 @@
 				FilterOutput fo = ContentFilter.filter(data, bucketFactory, mimeType, new URI(basePath + URLEncoder.encode(key.toString(false))), null);
 				data = fo.data;
 				mimeType = fo.type;
-			}
-			
-			if(!forceDownload) {
+				
 				if(horribleEvilHack(data) && !(mimeType.startsWith("application/rss+xml"))) {
 					HTMLNode pageNode = context.getPageMaker().getPageNode("Potentially Dangerous Content (RSS)");
 					HTMLNode contentNode = context.getPageMaker().getContentNode(pageNode);




More information about the cvs mailing list