ultraparanoid zip entry safename function
authorjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 27 Sep 2007 13:04:39 +0000 (13:04 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 27 Sep 2007 13:04:39 +0000 (13:04 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@480 be28352e-c001-0410-b1a7-c7978e42abec

src/uk/ac/vamsas/objects/utils/AppDataReference.java

index db06fa6..058f9e6 100644 (file)
@@ -146,7 +146,7 @@ public class AppDataReference {
    * @param entry base application reference to make unique 
    */
   public static String uniqueAppDataReference(VamsasDocument dest,String base) {
-    String urn = base.replace('/','_').replace('\\','_').replace(':', '_');
+    String urn = base.replace('/','_').replace('\\','_').replace(':', '_').replace('.', '_');
     int v = 1;
     for (int i=0, j=dest.getApplicationDataCount(); i<j; i++) {
       ApplicationData o = dest.getApplicationData()[i];