mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
KeeShare: Default to unsigned container unless specifically chosen
*Fix #6081 - Prevent assert and crash due to user entered data
This commit is contained in:
parent
c5a2aa0a2a
commit
c9c19d043f
@ -224,9 +224,5 @@ ShareObserver::Result ShareExport::intoContainer(const QString& resolvedPath,
|
||||
if (KeeShare::isContainerType(info, KeeShare::signedContainerFileType())) {
|
||||
return intoSignedContainer(resolvedPath, reference, targetDb.data());
|
||||
}
|
||||
if (KeeShare::isContainerType(info, KeeShare::unsignedContainerFileType())) {
|
||||
return intoUnsignedContainer(resolvedPath, reference, targetDb.data());
|
||||
}
|
||||
Q_ASSERT(false);
|
||||
return {reference.path, ShareObserver::Result::Error, tr("Unexpected export error occurred")};
|
||||
return intoUnsignedContainer(resolvedPath, reference, targetDb.data());
|
||||
}
|
||||
|
@ -344,8 +344,5 @@ ShareObserver::Result ShareImport::containerInto(const QString& resolvedPath,
|
||||
if (KeeShare::isContainerType(info, KeeShare::signedContainerFileType())) {
|
||||
return signedContainerInto(resolvedPath, reference, targetGroup);
|
||||
}
|
||||
if (KeeShare::isContainerType(info, KeeShare::unsignedContainerFileType())) {
|
||||
return unsignedContainerInto(resolvedPath, reference, targetGroup);
|
||||
}
|
||||
return {reference.path, ShareObserver::Result::Error, tr("Unknown share container type")};
|
||||
return unsignedContainerInto(resolvedPath, reference, targetGroup);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user