mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 03:02:15 -05:00
Fix fingerprint length check in QR Code import
This commit is contained in:
parent
c8266203f8
commit
2cdaa75b01
@ -153,7 +153,7 @@ public class ImportKeysProxyActivity extends FragmentActivity {
|
||||
}
|
||||
|
||||
String fingerprint = uri.getEncodedSchemeSpecificPart().toLowerCase(Locale.ENGLISH);
|
||||
if (fingerprint.matches("[a-fA-F0-9]{40}")) {
|
||||
if (!fingerprint.matches("[a-fA-F0-9]{40}")) {
|
||||
SingletonResult result = new SingletonResult(
|
||||
SingletonResult.RESULT_ERROR, LogType.MSG_WRONG_QR_CODE_FP);
|
||||
Intent intent = new Intent();
|
||||
|
Loading…
Reference in New Issue
Block a user