mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
qrcode-util: set case-sensitive for generating QR codes
Until now, string treated case-insensitive, always converted to uppercase. This can cause confusion such as user enter uppercased recovery key.
This commit is contained in:
parent
afbcd90552
commit
fd11201b93
@ -110,7 +110,7 @@ int print_qrcode(FILE *out, const char *header, const char *string) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
qr = sym_QRcode_encodeString(string, 0, QR_ECLEVEL_L, QR_MODE_8, 0);
|
||||
qr = sym_QRcode_encodeString(string, 0, QR_ECLEVEL_L, QR_MODE_8, 1);
|
||||
if (!qr)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user