Remove spaces from filename before saving to cache

This commit is contained in:
Philipp Crocoll 2013-06-01 21:44:17 +02:00
parent 0c4f7d6aed
commit 7e8e261dbb

View File

@ -254,7 +254,10 @@ namespace keepass2android
if (writeToCacheDirectory)
binaryDirectory = CacheDir.Path;
var targetFile = new Java.IO.File(binaryDirectory, key);
string filepart = key;
if (writeToCacheDirectory)
filepart = filepart.Replace(" ", "");
var targetFile = new Java.IO.File(binaryDirectory, filepart);
Java.IO.File parent = targetFile.ParentFile;