Defect #31886

There is no limitation for the content of news

Added by jwjw yy 3 months ago. Updated 3 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
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.

Screen Shot 2019-08-12 at 10.26.10 PM.png (280 KB) jwjw yy, 2019-08-13 07:28

html.patch Magnifier (720 Bytes) jwjw yy, 2019-08-13 07:41

model.patch Magnifier (483 Bytes) jwjw yy, 2019-08-13 07:41

History

#1 Updated by jwjw yy 3 months ago

Also available in: Atom PDF