remove .pgp for filename guessing for decryption
This commit is contained in:
1 parent
1edc2c69f2
commit
cab78bf4c1
1 file changed
+1
-1
@@ -273,7 +273,7 @@ public class DecryptActivity extends BaseActivity {
|
||||
mInputFilename = mFilename.getText().toString();
|
||||
File file = new File(mInputFilename);
|
||||
String filename = file.getName();
|
||||
if (filename.endsWith(".asc") || filename.endsWith(".gpg")) {
|
||||
if (filename.endsWith(".asc") || filename.endsWith(".gpg") || filename.endsWith(".pgp")) {
|
||||
filename = filename.substring(0, filename.length() - 4);
|
||||
}
|
||||
mOutputFilename = Constants.path.app_dir + "/" + filename;
|
||||
|
||||
Reference in new issue
Block a user