mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 00:39:43 -05:00
Don't mark URL references as invalid URL (#5380)
This commit is contained in:
parent
c67ebf19d4
commit
9bab5d5a33
@ -263,7 +263,8 @@ namespace Tools
|
|||||||
|
|
||||||
bool checkUrlValid(const QString& urlField)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -437,6 +437,7 @@ void TestBrowser::testValidURLs()
|
|||||||
urls["http:/example.com"] = false;
|
urls["http:/example.com"] = false;
|
||||||
urls["cmd://C:/Toolchains/msys2/usr/bin/mintty \"ssh jon@192.168.0.1:22\""] = true;
|
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["file:///Users/testUser/Code/test.html"] = true;
|
||||||
|
urls["{REF:A@I:46C9B1FFBD4ABC4BBB260C6190BAD20C} "] = true;
|
||||||
|
|
||||||
QHashIterator<QString, bool> i(urls);
|
QHashIterator<QString, bool> i(urls);
|
||||||
while (i.hasNext()) {
|
while (i.hasNext()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user