Fix fingerprint length check in QR Code import

This commit is contained in:
Dominik Schürmann 2015-05-19 19:07:58 +02:00
parent c8266203f8
commit 2cdaa75b01

View File

@ -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();