Author: jflesch
Date: 2007-07-21 17:09:04 +0000 (Sat, 21 Jul 2007)
New Revision: 14244
Modified:
trunk/apps/Thaw/src/thaw/plugins/FetchPlugin.java
Log:
Fix the fetchPlugin when trying to download a KSK@
Modified: trunk/apps/Thaw/src/thaw/plugins/FetchPlugin.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/FetchPlugin.java 2007-07-21 16:32:50 UTC
(rev 14243)
+++ trunk/apps/Thaw/src/thaw/plugins/FetchPlugin.java 2007-07-21 17:09:04 UTC
(rev 14244)
@@ -103,7 +103,7 @@
for(int i = 0 ; i < keys.length ; i++) {
- if(keys[i].length() < 10)
+ if(keys[i].length() < 10 && !keys[i].startsWith("KSK@"))
continue;
final String[] subKey = keys[i].split("\\?"); /*
Because of VolodyA :p */
@@ -113,16 +113,18 @@
if (key == null || !FreenetURIHelper.isAKey(key))
continue;
- int slash_pos = key.indexOf("/");
+ if (!key.startsWith("KSK@")) {
+ int slash_pos = key.indexOf("/");
- if (slash_pos < 0)
- continue;
+ if (slash_pos < 0)
+ continue;
- if (slash_pos < MIN_SLASH_POSITION) {
- trollDetected = true;
- /* We'll let Thaw continue to show how
- * useful these keys are
- */
+ if (slash_pos < MIN_SLASH_POSITION) {
+ trollDetected = true;
+ /* We'll let Thaw continue to show how
+ * useful these keys are
+ */
+ }
}
core.getQueueManager().addQueryToThePendingQueue(new
FCPClientGet(key,
@@ -135,6 +137,7 @@
fetchFrame.setVisible(false);
+ /*
if (trollDetected) {
new thaw.gui.WarningWindow(core,
I18n.getMessage("thaw.plugin.fetch.freenet0.5.l1")+"\n"
@@ -145,6 +148,7 @@
+
I18n.getMessage("thaw.plugin.fetch.freenet0.5.l6"));
return;
}
+ */
if (!somethingStarted) {
new thaw.gui.WarningWindow(core,