mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Properly URLDecode file names.
This commit is contained in:
@@ -21,6 +21,7 @@ package com.keepassdroid;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
|
import java.net.URLDecoder;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
@@ -106,7 +107,7 @@ public class PasswordActivity extends LockingActivity {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mFileName = mFileName.substring(7, mFileName.length());
|
mFileName = URLDecoder.decode(mFileName.substring(7, mFileName.length()));
|
||||||
|
|
||||||
if ( mFileName.length() == 0 ) {
|
if ( mFileName.length() == 0 ) {
|
||||||
// No file name
|
// No file name
|
||||||
|
|||||||
Reference in New Issue
Block a user