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 79b7cec94a
commit 0df51b6140

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