Mercurial > hg > bitcoin
changeset 2649:7b289e24d638 draft
Remove autocorrection of 0/i in addresses in UI
author | Wladimir J. van der Laan <laanwj@gmail.com> |
---|---|
date | Fri, 18 May 2012 08:53:26 +0200 |
parents | 1f21bd23fe98 |
children | ece2b86750e0 |
files | src/qt/bitcoinaddressvalidator.cpp |
diffstat | 1 files changed, 3 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/qt/bitcoinaddressvalidator.cpp +++ b/src/qt/bitcoinaddressvalidator.cpp @@ -25,17 +25,11 @@ { bool removeChar = false; QChar ch = input.at(idx); - // Transform characters that are visually close + // Corrections made are very conservative on purpose, to avoid + // users unexpectedly getting away with typos that would normally + // be detected, and thus sending to the wrong address. switch(ch.unicode()) { - case 'l': - case 'I': - input[idx] = QChar('1'); - break; - case '0': - case 'O': - input[idx] = QChar('o'); - break; // Qt categorizes these as "Other_Format" not "Separator_Space" case 0x200B: // ZERO WIDTH SPACE case 0xFEFF: // ZERO WIDTH NO-BREAK SPACE