mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-23 01:32:16 +00:00
I see an IIS bug.
This commit is contained in:
parent
aa29df784e
commit
2111b90277
2 changed files with 2 additions and 1 deletions
|
@ -90,7 +90,7 @@ public ActionResult AddRelease(PostDownloadViewModel model)
|
||||||
string file_name_d = model.Download.FileName.ToLower();
|
string file_name_d = model.Download.FileName.ToLower();
|
||||||
foreach(var c in file_name_d.ToCharArray())
|
foreach(var c in file_name_d.ToCharArray())
|
||||||
{
|
{
|
||||||
if (!ApprovedIdChars.Contains(c))
|
if (!ApprovedIdChars.Contains(c) && c != '.')
|
||||||
file_name_d = file_name_d.Replace(c, '_');
|
file_name_d = file_name_d.Replace(c, '_');
|
||||||
}
|
}
|
||||||
download_dir += file_name_d;
|
download_dir += file_name_d;
|
||||||
|
|
|
@ -16,6 +16,7 @@ public ActionResult Index()
|
||||||
return View(db.Downloads);
|
return View(db.Downloads);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GET: http://getshiftos.ml/Download/ViewRelease/shiftos_0.0.7_alpha_4.1_0
|
||||||
public ActionResult ViewRelease(string id)
|
public ActionResult ViewRelease(string id)
|
||||||
{
|
{
|
||||||
var db = new ApplicationDbContext();
|
var db = new ApplicationDbContext();
|
||||||
|
|
Loading…
Reference in a new issue