From: Ben Soares Date: Wed, 29 May 2024 15:25:34 +0000 (+0100) Subject: JAL-4409 Allow more URI schemes (e.g. file) to be opened in Jalview X-Git-Tag: Release_2_11_4_0~28^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=5a9cb62d3054a07ad1233b13595e19266b3cc627;p=jalview.git JAL-4409 Allow more URI schemes (e.g. file) to be opened in Jalview --- diff --git a/src/jalview/bin/Commands.java b/src/jalview/bin/Commands.java index eb81847..c4b532b 100644 --- a/src/jalview/bin/Commands.java +++ b/src/jalview/bin/Commands.java @@ -270,7 +270,7 @@ public class Commands * @j2sIgnore */ { - if (!HttpUtils.startsWithHttpOrHttps(openFile)) + if (!HttpUtils.isPlausibleUri(openFile)) { if (!(new File(openFile)).exists()) {