Summary: | Payee > Account Numbers > IBAN does not accept pasted content with a space at the start | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | Duncan <kde.bugs> |
Component: | ux-ui | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 5.1.2 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/office/kmymoney/commit/99be6bdb11666d4ffa47fbab8b87449c8f4ed2b3 | Version Fixed In: | 5.1.3 |
Sentry Crash Report: |
Description
Duncan
2022-04-23 17:52:03 UTC
Where I ran into this was double-clicking an IBAN in wise.com's interface to select it, copying it with Ctrl-C, and then attempting to paste it. Something about the copied HTML places a space at each end of the text, and this whitespace is not obvious unless you paste into a program like Kate and notice the extra space on the highlight. Clarity for step 3 of the reproduction - highlight including the space at the start. Git commit a5a3e9bb2560655212e63001dddb8ae886f87465 by Thomas Baumgart. Committed on 24/04/2022 at 07:12. Pushed by tbaumgart into branch 'master'. Remove invalid chars from IBAN before validation check The validation worked when single characters where added but it failed, when text was pasted into the field and contained invalid chars. This change removes those before the validation check is performed. M +1 -0 kmymoney/widgets/payeeidentifier/ibanbic/ibanvalidator.cpp https://invent.kde.org/office/kmymoney/commit/a5a3e9bb2560655212e63001dddb8ae886f87465 Git commit 99be6bdb11666d4ffa47fbab8b87449c8f4ed2b3 by Thomas Baumgart. Committed on 24/04/2022 at 07:13. Pushed by tbaumgart into branch '5.1'. Remove invalid chars from IBAN before validation check The validation worked when single characters where added but it failed, when text was pasted into the field and contained invalid chars. This change removes those before the validation check is performed. FIXED-IN: 5.1.3 (cherry picked from commit a5a3e9bb2560655212e63001dddb8ae886f87465) M +1 -0 kmymoney/widgets/payeeidentifier/ibanbic/ibanvalidator.cpp https://invent.kde.org/office/kmymoney/commit/99be6bdb11666d4ffa47fbab8b87449c8f4ed2b3 Thank you Thomas. I had looked in that validator code, but my C++ knowledge is about zero, so couldn't offer a patch (and didn't know fixup() existed either). |