XML Replace crashes when "Find what" and "Replace what" are empty
A lightweight and easy-to-use password manager
Brought to you by:
dreichl
In XML Replace, leaving both "Find what" and "Replace what" empty causes KeePass to freeze and crash.
Steps to reproduce:
Expected: Show a validation error.
Actual: KeePass freezes and crashes.
KeePass 2.61.1
Windows 11
Many thanks for reporting this issue!
The [OK] button of the XML Replace dialog is now disabled when the node selection XPath expression or the search text (if necessary) is empty. Furthermore, I've added a check in the string replacement method that XML Replace uses (which may also be used by plugins, PowerShell scripts, etc.).
Here's the latest development snapshot for testing:
https://keepass.info/filepool/KeePass_260817.zip
Best regards,
Dominik
Thank you so much!
By the way, any update on this?
https://sourceforge.net/p/keepass/feature-requests/2990/
Not yet; I'll post in FR 2990 when there are news about it.
Best regards,
Dominik