Fix failed uploads when display name of file brough from external apps includes separator or path-separator characters

This commit is contained in:
David A. Velasco 2014-11-19 11:05:32 +01:00
parent 387374bed2
commit 703366c459

View file

@ -710,6 +710,8 @@ OnSslUntrustedCertListener, OnEnforceableRefreshListener {
cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));
Log.i(TAG, "Display Name: " + displayName + "; mimeType: " + mimeType);
displayName.replace(File.separatorChar, '_');
displayName.replace(File.pathSeparatorChar, '_');
remotepath += displayName + DisplayUtils.getComposedFileExtension(filepath);
}