diff --git a/src/core/Tools.cpp b/src/core/Tools.cpp index d29e92bff..7e2b65bcd 100644 --- a/src/core/Tools.cpp +++ b/src/core/Tools.cpp @@ -263,7 +263,8 @@ namespace Tools bool checkUrlValid(const QString& urlField) { - if (urlField.isEmpty() || urlField.startsWith("cmd://", Qt::CaseInsensitive)) { + if (urlField.isEmpty() || urlField.startsWith("cmd://", Qt::CaseInsensitive) + || urlField.startsWith("{REF:A", Qt::CaseInsensitive)) { return true; } diff --git a/tests/TestBrowser.cpp b/tests/TestBrowser.cpp index 3e518c1e2..95189fec7 100644 --- a/tests/TestBrowser.cpp +++ b/tests/TestBrowser.cpp @@ -437,6 +437,7 @@ void TestBrowser::testValidURLs() urls["http:/example.com"] = false; urls["cmd://C:/Toolchains/msys2/usr/bin/mintty \"ssh jon@192.168.0.1:22\""] = true; urls["file:///Users/testUser/Code/test.html"] = true; + urls["{REF:A@I:46C9B1FFBD4ABC4BBB260C6190BAD20C} "] = true; QHashIterator i(urls); while (i.hasNext()) {