mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-02-02 13:07:34 +00:00
Oops.
This commit is contained in:
parent
2111b90277
commit
149a91c9c9
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ namespace Project_Unite.Controllers
|
|||
string file_name_d = model.Download.FileName.ToLower();
|
||||
foreach(var c in file_name_d.ToCharArray())
|
||||
{
|
||||
if (!ApprovedIdChars.Contains(c) && c != '.')
|
||||
if (!ApprovedIdChars.Contains(c) || c == '.')
|
||||
file_name_d = file_name_d.Replace(c, '_');
|
||||
}
|
||||
download_dir += file_name_d;
|
||||
|
|
Loading…
Add table
Reference in a new issue