From: Ben Soares Date: Wed, 23 Sep 2020 22:41:36 +0000 (+0100) Subject: JAL-3757 JAL-3689 Fixed checks for URLs by adding checks for https:// as well as... X-Git-Tag: Release_2_11_1_2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=92e4515db411fbbad37b5041745412ea09535b7f;p=jalview.git JAL-3757 JAL-3689 Fixed checks for URLs by adding checks for https:// as well as --- diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index eaa5fa8..7ad7320 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -65,6 +65,7 @@ import jalview.io.NewickFile; import jalview.io.gff.SequenceOntologyFactory; import jalview.schemes.ColourSchemeI; import jalview.schemes.ColourSchemeProperty; +import jalview.util.HttpUtils; import jalview.util.MessageManager; import jalview.util.Platform; import jalview.ws.jws2.Jws2Discoverer; @@ -692,7 +693,7 @@ public class Jalview protocol = DataSourceType.FILE; - if (file.indexOf("http:") > -1) + if (HttpUtils.startsWithHttpOrHttps(file)) { protocol = DataSourceType.URL; }