fix substring

This commit is contained in:
Michael 2017-05-28 13:01:40 -04:00
parent 0214626db3
commit c629251ecd

View file

@ -135,7 +135,7 @@ public ActionResult PostBug(PostBugViewModel model)
**Author's description:** **Author's description:**
{comment.Body.Substring(Math.Min(comment.Body.Length, 128))}", Url.Action("ViewBug", new { id = bug.Id })); {comment.Body.Substring(0, Math.Min(comment.Body.Length, 128))}", Url.Action("ViewBug", new { id = bug.Id }));
return RedirectToAction("ViewBug", new { id = bug.Id }); return RedirectToAction("ViewBug", new { id = bug.Id });
} }
} }