Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/Tools.cpp3
-rw-r--r--tests/TestBrowser.cpp1
2 files changed, 3 insertions, 1 deletions
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<QString, bool> i(urls);
while (i.hasNext()) {