Closed
Bug 481952
Opened 16 years ago
Closed 16 years ago
Confirm attachment deletion page puts HTML in <title>
Categories
(Bugzilla :: Attachments & Requests, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.0
People
(Reporter: reed, Assigned: reed)
References
Details
Attachments
(1 file, 1 obsolete file)
|
1.06 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | 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)
Updated•16 years ago
|
Attachment #366016 -
Flags: review?(LpSolit) → review-
Comment 1•16 years ago
|
||
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.
| Assignee | ||
Comment 2•16 years ago
|
||
(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 – $filtered_desc"
Why isn't that filtering the bug_id?
Comment 3•16 years ago
|
||
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.
| Assignee | ||
Comment 4•16 years ago
|
||
Attachment #366016 -
Attachment is obsolete: true
Attachment #366244 -
Flags: review?(LpSolit)
| Assignee | ||
Updated•16 years ago
|
Attachment #366244 -
Attachment is patch: true
Attachment #366244 -
Attachment mime type: application/octet-stream → text/plain
Comment 5•16 years ago
|
||
Comment on attachment 366244 [details] [diff] [review]
patch - v2
r=LpSolit
Attachment #366244 -
Flags: review?(LpSolit) → review+
Updated•16 years ago
|
Severity: normal → minor
Flags: approval3.2+
Flags: approval+
| Assignee | ||
Comment 6•16 years ago
|
||
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.
Description
•