From 11aafc0f48fc3c574c77f87864ae1d908e73d0cb Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 8 Jul 2016 16:00:06 -0700 Subject: [PATCH] use endsWith for scriptURL check --- interface/src/Application.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 94ede3ca83..b58fa57d3f 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -4827,7 +4827,10 @@ bool Application::askToLoadScript(const QString& scriptFilenameOrURL) { QMessageBox::StandardButton reply; QString shortName = scriptFilenameOrURL; - if (shortName.contains(MARKETPLACE_CDN_HOSTNAME)) { + + QUrl scriptURL { scriptFilenameOrURL }; + + if (scriptURL.host().endsWith(MARKETPLACE_CDN_HOSTNAME)) { shortName = shortName.mid(shortName.lastIndexOf('/') + 1); }