mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-14 21:05:09 -05:00
Fix fingerprint length check in QR Code import
This commit is contained in:
parent
79b7cec94a
commit
0df51b6140
@ -153,7 +153,7 @@ public class ImportKeysProxyActivity extends FragmentActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String fingerprint = uri.getEncodedSchemeSpecificPart().toLowerCase(Locale.ENGLISH);
|
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 = new SingletonResult(
|
||||||
SingletonResult.RESULT_ERROR, LogType.MSG_WRONG_QR_CODE_FP);
|
SingletonResult.RESULT_ERROR, LogType.MSG_WRONG_QR_CODE_FP);
|
||||||
Intent intent = new Intent();
|
Intent intent = new Intent();
|
||||||
|
Loading…
Reference in New Issue
Block a user