Project

General

Profile

Actions

Patch #29674

closed

Missing validation for custom field formats based on RecordList

Added by Alexander Achenbach over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Custom fields
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

No validation is performed on input given to custom field formats

  • EnumerationFormat
  • UserFormat
  • VersionFormat

(all based on RecordList). While displayed choices are properly restricted, manipulation of the form on the client side allows to send arbitrary record IDs, which will be accepted without further checks.

The attached patch (tested on Redmine 3.4.6) adds a validation function to RecordList.


Files

validate-record-list.patch (680 Bytes) validate-record-list.patch Alexander Achenbach, 2018-09-25 13:23
29674_test_added.patch (4.54 KB) 29674_test_added.patch Takenori TAKAKI, 2018-09-28 05:08
Actions

Also available in: Atom PDF