diff options
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/app/passwordstore/ui/crypto/BasePgpActivity.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/app/passwordstore/ui/crypto/BasePgpActivity.kt b/app/src/main/java/app/passwordstore/ui/crypto/BasePgpActivity.kt index fe59b4ff..417565a7 100644 --- a/app/src/main/java/app/passwordstore/ui/crypto/BasePgpActivity.kt +++ b/app/src/main/java/app/passwordstore/ui/crypto/BasePgpActivity.kt @@ -168,6 +168,8 @@ open class BasePgpActivity : AppCompatActivity() { // file we created. Skip the validation so we can make the user add a // real ID. if (line.isEmpty()) return@run + // Apparently `gpg-id` being the first line is also acceptable? + if (line == "gpg-id") return@run if (line.removePrefix("0x").matches("[a-fA-F0-9]{8}".toRegex()).not()) { snackbar(message = resources.getString(R.string.invalid_gpg_id)) } |