diff options
Diffstat (limited to 'includes/controller')
-rw-r--r-- | includes/controller/user_worklog_controller.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/controller/user_worklog_controller.php b/includes/controller/user_worklog_controller.php index 6b100338..5bb07f33 100644 --- a/includes/controller/user_worklog_controller.php +++ b/includes/controller/user_worklog_controller.php @@ -93,6 +93,11 @@ function user_worklog_from_request($userWorkLog) error(__('Please enter a comment.')); } + if (mb_strlen($userWorkLog['comment']) > 200) { + $valid = false; + error(__('Comment too long.')); + } + return [ $valid, $userWorkLog |