JAL-3931 fix - escape % symbols after urlencoding
authorJim Procter <j.procter@dundee.ac.uk>
Fri, 11 Feb 2022 17:09:04 +0000 (17:09 +0000)
committerJim Procter <j.procter@dundee.ac.uk>
Fri, 11 Feb 2022 17:09:04 +0000 (17:09 +0000)
src/jalview/gui/StructureViewerBase.java

index ae2128b..8ac23ef 100644 (file)
@@ -1160,7 +1160,7 @@ public abstract class StructureViewerBase extends GStructureViewer
       } else {
           if (processingEntry.hasRetrievalUrl())
           {
-            String safePDBId = java.net.URLEncoder.encode(pdbid,"UTF-8");
+            String safePDBId = java.net.URLEncoder.encode(pdbid,"UTF-8").replace("%","__");
                      
             // retrieve from URL to new local tmpfile
             File tmpFile = File.createTempFile(safePDBId,