From 81e0ac7f903d0c4d1e6a3a3ac8f367f6b35543ad Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Mon, 31 Aug 2015 12:36:19 +0930 Subject: [PATCH] Validate post length to prevent truncation closes #235 --- framework/core/src/Core/Posts/Post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Core/Posts/Post.php b/framework/core/src/Core/Posts/Post.php index 4c606de52..8082ac7f4 100755 --- a/framework/core/src/Core/Posts/Post.php +++ b/framework/core/src/Core/Posts/Post.php @@ -43,7 +43,7 @@ class Post extends Model protected $rules = [ 'discussion_id' => 'required|integer', 'time' => 'required|date', - 'content' => 'required', + 'content' => 'required|max:65535', 'number' => 'integer', 'user_id' => 'integer', 'edit_time' => 'date',