From: Jim Procter Date: Fri, 11 Feb 2022 17:09:04 +0000 (+0000) Subject: JAL-3931 fix - escape % symbols after urlencoding X-Git-Tag: Release_2_11_2_0~13^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a031a30fa5066c659a589f768cf7982bdeaa1252;p=jalview.git JAL-3931 fix - escape % symbols after urlencoding --- 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,