Closed Bug 413648 Opened 17 years ago Closed 15 years ago

attachment mime type handling should strip leading and trailing spaces

Categories

(Bugzilla :: Attachments & Requests, defect, P4)

3.1.2

Tracking

()

RESOLVED FIXED
Bugzilla 3.6

People

(Reporter: timeless, Assigned: LpSolit)

References

()

Details

Attachments

(2 files)

I pasted a content type into the mime type field and submitted, i got this error: The content type <em> text/plain;charset=utf-16</em> is invalid. Valid types must be of the form <em>foo/bar</em> where <em>foo</em> is either <em>application, audio, image, message, model, multipart, text,</em> or <em>video</em>. Steps: 1. copy " text/plain;charset=utf-16" into the mime type for an attachment and click submit Expected results: treat it the same as "text/plain;charset=utf-16" Actual results: Error above, which when rendered as html doesn't appear to have anything interesting.
Severity: normal → minor
OS: Windows XP → All
Priority: -- → P4
Hardware: PC → All
Attached patch patch, v1Splinter Review
Assignee: attach-and-request → LpSolit
Status: NEW → ASSIGNED
Attachment #485271 - Flags: review+
Attachment #485272 - Flags: review+
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/ modified Bugzilla/Attachment.pm Committed revision 7558. Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/4.0/ modified Bugzilla/Attachment.pm Committed revision 7450. Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/3.6/ modified Bugzilla/Attachment.pm Committed revision 7194.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: approval4.0+
Flags: approval3.6+
Flags: approval+
Resolution: --- → FIXED
Target Milestone: --- → Bugzilla 3.6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: