diff options
author | thez3ro <io@thezero.org> | 2017-05-01 02:18:42 +0300 |
---|---|---|
committer | thez3ro <io@thezero.org> | 2017-05-01 02:18:42 +0300 |
commit | 40b4dc3b61b36c250a21de74dd2660fb4384683a (patch) | |
tree | 4daa9d55c97ce4bbd3c01d217634f6dfa4e9a419 /src | |
parent | b474d34cf0a0d6c4bc85b0956b0e4d73b65dc014 (diff) |
Only printable extended ASCII
Diffstat (limited to 'src')
-rw-r--r-- | src/core/PasswordGenerator.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/PasswordGenerator.cpp b/src/core/PasswordGenerator.cpp index 8b0f99f8b..0fa5198fc 100644 --- a/src/core/PasswordGenerator.cpp +++ b/src/core/PasswordGenerator.cpp @@ -198,11 +198,13 @@ QVector<PasswordGroup> PasswordGenerator::passwordGroups() const if (m_classes & EASCII) { PasswordGroup group; - for (int i = 128; i <= 169; i++) { + // [U+0080, U+009F] are C1 control characters, + // U+00A0 is non-breaking space + for (int i = 161; i <= 172; i++) { group.append(i); } - - for (int i = 171; i <= 254; i++) { + // U+00AD is soft hyphen (format character) + for (int i = 174; i <= 255; i++) { if ((m_flags & ExcludeLookAlike) && (i == 249)) { // "﹒" continue; } |