diff --git a/Childrens-Social-Care-CPD/Controllers/FeedbackController.cs b/Childrens-Social-Care-CPD/Controllers/FeedbackController.cs index 25a5c271..e3416831 100644 --- a/Childrens-Social-Care-CPD/Controllers/FeedbackController.cs +++ b/Childrens-Social-Care-CPD/Controllers/FeedbackController.cs @@ -45,7 +45,7 @@ private static bool IsModelValid(FeedbackModel model, out string pageId) pageId = pageId.Trim('/'); if (pageId.Length > 512 - || model.Comments?.Length > 500 + || model.Comments?.Length > 400 || !Regex.IsMatch(pageId, @"^[0-9a-z](\/?[0-9a-z\-])*\/?$", RegexOptions.Compiled, TimeSpan.FromSeconds(1))) { return false; diff --git a/Childrens-Social-Care-CPD/Views/Shared/_BetaBanner.cshtml b/Childrens-Social-Care-CPD/Views/Shared/_BetaBanner.cshtml index df7449e6..606a7747 100644 --- a/Childrens-Social-Care-CPD/Views/Shared/_BetaBanner.cshtml +++ b/Childrens-Social-Care-CPD/Views/Shared/_BetaBanner.cshtml @@ -7,7 +7,7 @@ BETA
diff --git a/Childrens-Social-Care-CPD/Views/Shared/_Feedback.cshtml b/Childrens-Social-Care-CPD/Views/Shared/_Feedback.cshtml index 2e2e3871..69304ac8 100644 --- a/Childrens-Social-Care-CPD/Views/Shared/_Feedback.cshtml +++ b/Childrens-Social-Care-CPD/Views/Shared/_Feedback.cshtml @@ -6,9 +6,10 @@ @{ var contextModel = (ContextModel)ViewBag.ContextModel; + var commentsId = $"comments-{Guid.NewGuid()}"; } -