Closed Bug 481952 Opened 16 years ago Closed 16 years ago

Confirm attachment deletion page puts HTML in <title>

Categories

(Bugzilla :: Attachments & Requests, defect)

3.2.2
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: reed, Assigned: reed)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch - v1 (obsolete) — Splinter Review
I was deleting an attachment on bmo the other day, and I noticed the <title> had a bunch of HTML in it. <title> shouldn't have HTML tags in it... Untested patch attached.
Attachment #366016 - Flags: review?(LpSolit)
Attachment #366016 - Flags: review?(LpSolit) → review-
Comment on attachment 366016 [details] [diff] [review] patch - v1 >- Delete Attachment [% a.id FILTER html %] of >- [%+ "$terms.Bug " _ a.bug_id FILTER bug_link(a.bug_id) FILTER none %] >+ Delete Attachment [% a.id %] of [% terms.Bug %] [%+ a.bug_id %] You must leave FILTER html alone, for both fields. Only bug_link() FILTER none must go away.
Depends on: 44595
(In reply to comment #1) > You must leave FILTER html alone, for both fields. Only bug_link() FILTER none > must go away. I removed the filters because of this code in bug/show.html.tmpl: [% PROCESS global/header.html.tmpl title = "$terms.Bug $bug.bug_id &ndash; $filtered_desc" Why isn't that filtering the bug_id?
008filter.t doesn't catch unfiltered stuff in strings, only in BLOCKs. With your fix as is, Tinderbox is going to burn. We know .id and .bug_id should be safe, but I don't want additional stuff in filterexceptions.pl for just one line.
Attached patch patch - v2Splinter Review
Attachment #366016 - Attachment is obsolete: true
Attachment #366244 - Flags: review?(LpSolit)
Attachment #366244 - Attachment is patch: true
Attachment #366244 - Attachment mime type: application/octet-stream → text/plain
Comment on attachment 366244 [details] [diff] [review] patch - v2 r=LpSolit
Attachment #366244 - Flags: review?(LpSolit) → review+
Severity: normal → minor
Flags: approval3.2+
Flags: approval+
tip: Checking in template/en/default/attachment/confirm-delete.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/attachment/confirm-delete.html.tmpl,v <-- confirm-delete.html.tmpl new revision: 1.7; previous revision: 1.6 done BUGZILLA-3_2-BRANCH: Checking in template/en/default/attachment/confirm-delete.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/attachment/confirm-delete.html.tmpl,v <-- confirm-delete.html.tmpl new revision: 1.6.2.1; previous revision: 1.6 done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: