From c9bac2ed03880320d54a7365c77374a23c4cb02e Mon Sep 17 00:00:00 2001 From: Lorenz Bausch Date: Sat, 29 Aug 2015 11:23:05 +0200 Subject: [PATCH 1/2] remove executable flag from file --- framework/core/src/Core/Discussions/Discussion.php | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 framework/core/src/Core/Discussions/Discussion.php diff --git a/framework/core/src/Core/Discussions/Discussion.php b/framework/core/src/Core/Discussions/Discussion.php old mode 100755 new mode 100644 From 4af20f810144be135e30a1192144f064c2a8cece Mon Sep 17 00:00:00 2001 From: Lorenz Bausch Date: Sat, 29 Aug 2015 11:26:18 +0200 Subject: [PATCH 2/2] limit max title length to 80 characters --- framework/core/src/Core/Discussions/Discussion.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Core/Discussions/Discussion.php b/framework/core/src/Core/Discussions/Discussion.php index f3984ccea..75e1e5fee 100644 --- a/framework/core/src/Core/Discussions/Discussion.php +++ b/framework/core/src/Core/Discussions/Discussion.php @@ -46,7 +46,7 @@ class Discussion extends Model * @var array */ protected $rules = [ - 'title' => 'required', + 'title' => 'required|max:80', 'start_time' => 'required|date', 'comments_count' => 'integer', 'participants_count' => 'integer',