From a031a30fa5066c659a589f768cf7982bdeaa1252 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 11 Feb 2022 17:09:04 +0000 Subject: [PATCH] JAL-3931 fix - escape % symbols after urlencoding --- src/jalview/gui/StructureViewerBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/gui/StructureViewerBase.java b/src/jalview/gui/StructureViewerBase.java index ae2128b..8ac23ef 100644 --- a/src/jalview/gui/StructureViewerBase.java +++ b/src/jalview/gui/StructureViewerBase.java @@ -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, -- 1.7.10.2