Project

General

Profile

Actions

Defect #31886

open

There is no limitation for the content of news

Added by jwjw yy about 5 years ago. Updated about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

In my deployed Redmine, I tried to create a news with more than 65536 characters. And I got this as attached. There should be a constraint in new.rb, such as:

validates_length_of :description, maximum: 65535

even more, in the news/_form.html,
maxlength => 65535 
should be added to the textarea. I have attached the patch.


Files

Screen Shot 2019-08-12 at 10.26.10 PM.png (280 KB) Screen Shot 2019-08-12 at 10.26.10 PM.png jwjw yy, 2019-08-13 07:28
html.patch (720 Bytes) html.patch jwjw yy, 2019-08-13 07:41
model.patch (483 Bytes) model.patch jwjw yy, 2019-08-13 07:41
Actions #1

Updated by jwjw yy about 5 years ago

Actions

Also available in: Atom PDF