mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-03-13 03:20:24 +00:00
Super secret syntax error.
This commit is contained in:
parent
fec869364f
commit
2ebd4cae88
1 changed files with 2 additions and 2 deletions
|
@ -54,9 +54,9 @@ namespace Project_Unite.Controllers
|
|||
//Set the ID.
|
||||
string new_id = model.Name.ToLower();
|
||||
|
||||
foreach(var c in new_id.ToCharArray() || c == '.')
|
||||
foreach(var c in new_id.ToCharArray())
|
||||
{
|
||||
if (!ApprovedIdChars.Contains(c))
|
||||
if (!ApprovedIdChars.Contains(c) || c == '.')
|
||||
new_id = new_id.Replace(c, '_');
|
||||
}
|
||||
new_id += "_" + db.Downloads.Count().ToString();
|
||||
|
|
Loading…
Add table
Reference in a new issue