Skip to content

Commit

Permalink
safer file_name
Browse files Browse the repository at this point in the history
  • Loading branch information
ojhdt committed Nov 13, 2022
1 parent 2701105 commit 0e9d574
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ fun com.ojhdtapp.paraboxdevelopmentkit.messagedto.Profile.toProfile(context: Con
FileUtil.getUriByCopyingFileToPath(
context,
context.getExternalFilesDir("chat")!!,
"Avatar_${this.name}.png",
"Avatar_${this.name.replace("\\s+", "_")}.png",
it
)?.toString()
}, this.id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ fun EditActionDialog(
FileUtil.getUriByCopyingFileToPath(
context,
context.getExternalFilesDir("chat")!!,
"Avatar_${name}.png",
"Avatar_${name.replace("\\s+", "_")}.png",
it1
)?.toString()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ fun GroupActionDialog(
FileUtil.getUriByCopyingFileToPath(
context,
context.getExternalFilesDir("chat")!!,
"Avatar_${name}.png",
"Avatar_${name.replace("\\s+", "_")}.png",
it1
)?.toString()
},
Expand Down

0 comments on commit 0e9d574

Please sign in to comment.