From be170b5c092fdb42a0275ca4d71051917b21650b Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 27 Feb 2015 17:01:08 +0000 Subject: [PATCH] JAL-1678 - patch to make sure we only compare positions of the last / or ? --- src/jalview/appletgui/AlignFrame.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/appletgui/AlignFrame.java b/src/jalview/appletgui/AlignFrame.java index e84c335..7afe1fa 100644 --- a/src/jalview/appletgui/AlignFrame.java +++ b/src/jalview/appletgui/AlignFrame.java @@ -1281,7 +1281,8 @@ public class AlignFrame extends EmbmenuFrame implements ActionListener, StringBuffer url = new StringBuffer(jalviewServletURL); // allow servlet parameters to be passed in applet parameter - String firstSep = url.indexOf("?") > url.indexOf("/") ? "&" : "?"; + String firstSep = url.lastIndexOf("?") > url.lastIndexOf("/") ? "&" + : "?"; url.append(firstSep); url.append("open=" -- 1.7.10.2