Author: toad
Date: 2006-09-27 21:54:22 +0000 (Wed, 27 Sep 2006)
New Revision: 10523

Modified:
   trunk/freenet/src/freenet/keys/FreenetURI.java
Log:
Fix checkInsertURI().

Modified: trunk/freenet/src/freenet/keys/FreenetURI.java
===================================================================
--- trunk/freenet/src/freenet/keys/FreenetURI.java      2006-09-27 20:47:03 UTC 
(rev 10522)
+++ trunk/freenet/src/freenet/keys/FreenetURI.java      2006-09-27 21:54:22 UTC 
(rev 10523)
@@ -742,15 +742,11 @@
                                suggestedEdition);
        }

-       public void checkInsertURI() throws InserterException
-       {
-               if(this.keyType.equals("KSK"))
-               {
-                       if((this.docName!=null && 
this.docName.indexOf('/')!=-1) ||
-                          (this.cryptoKey!=null || this.extra!=null || 
this.routingKey!=null))
-                               throw new 
InserterException(InserterException.META_STRINGS_NOT_SUPPORTED,this);
-               }
+       public void checkInsertURI() throws InserterException {
+               if(metaStr != null && metaStr.length > 0)
+                       throw new 
InserterException(InserterException.META_STRINGS_NOT_SUPPORTED,this);
        }
+       
        public static void checkInsertURI(FreenetURI uri) throws 
InserterException { uri.checkInsertURI(); }

 }


Reply via email to