From c629251ecdd5de785dfa9490078e4c3f3d92c167 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 28 May 2017 13:01:40 -0400 Subject: [PATCH] fix substring --- Project-Unite/Controllers/BugsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project-Unite/Controllers/BugsController.cs b/Project-Unite/Controllers/BugsController.cs index c44f386..d321867 100644 --- a/Project-Unite/Controllers/BugsController.cs +++ b/Project-Unite/Controllers/BugsController.cs @@ -135,7 +135,7 @@ public ActionResult PostBug(PostBugViewModel model) **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 }); } }