Closed Bug 871345 Opened 11 years ago Closed 11 years ago

Allow html_line_break as a supported HTML filter

Categories

(Bugzilla :: Testing Suite, defect)

defect
Not set
trivial

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mail, Assigned: mail)

Details

Attachments

(1 file)

Attached patch v1 patchSplinter Review
Template toolkit provides a html_line_break filter
http://search.cpan.org/~abw/Template-Toolkit-2.14/lib/Template/Filters.pm#html_line_break

but Bugzilla does not recognise this as a valid filter.

Note: This is different to Bugzilla's html_linebreak filter.
Assignee: testing → sgreen
Severity: normal → trivial
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: x86_64 → All
Target Milestone: --- → Bugzilla 4.4
Attachment #748617 - Flags: review?(glob)
Comment on attachment 748617 [details] [diff] [review]
v1 patch

r=glob
Attachment #748617 - Flags: review?(glob) → review+
Flags: approval?
Flags: approval4.4?
Comment on attachment 748617 [details] [diff] [review]
v1 patch

The TT html_line_break filter only replaces newlines by <br>, but doesn't do any filtering at all, and so the content remains unfiltered, i.e. unsafe.

Our own html_linebreak filters content, and so is safe.

I cannot accept this patch.
Attachment #748617 - Flags: review-
html_line_break is not a HTML filter. What you want to write is:

[% foo FILTER html FILTER html_line_break %]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: approval?
Flags: approval4.4?
Flags: approval4.4-
Flags: approval-
Resolution: --- → WONTFIX
Target Milestone: Bugzilla 4.4 → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: