mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-29 21:33:13 -08:00
Don't mark URL references as invalid URL (#5380)
This commit is contained in:
1 parent
c67ebf19d4
commit
9bab5d5a33
2 files changed
+3
-1
No files matched your search
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -437,6 +437,7 @@ void TestBrowser::testValidURLs()
|
||||
urls["http:/example.com"] = false;
|
||||
urls["cmd://C:/Toolchains/msys2/usr/bin/mintty \"ssh [email protected]:22\""] = true;
|
||||
urls["file:///Users/testUser/Code/test.html"] = true;
|
||||
urls["{REF:A@I:46C9B1FFBD4ABC4BBB260C6190BAD20C} "] = true;
|
||||
|
||||
QHashIterator<QString, bool> i(urls);
|
||||
while (i.hasNext()) {
|
||||
|
||||
Reference in new issue
Block a user