Closed Bug 938424 Opened 12 years ago Closed 12 years ago

Strip some chars from tags

Categories

(Webmaker Graveyard :: MakeAPI, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cade, Assigned: cade)

Details

Attachments

(1 file)

For safety, lets remove most chars from tags on saves, updates, and check on searches.
Attachment #831908 - Flags: review?(pomax)
Attachment #831908 - Flags: review?(pomax) → review-
Attachment #831908 - Flags: review- → review?(pomax)
Attachment #831908 - Flags: review?(pomax) → review+
I don't mind characters being stripped if they're definitely not needed but the correct fix here is to resolve bug 938109 properly.
Flags: sec-review-
agreed, although it won't be encoding the data correctly when serving it back up "instead" of character filtering, but on top of (the makeapi has rules about what counts as valid tag data, and part of the problem here was that these rules were not being enforced).
With the fix for bug 938109 in place we should consider revisiting this bug before closing it. With that other patch landed, we don't have to filter out certain chars any longer.
Flags: needinfo?(pomax)
we can remove the specific-character-removal if the new fix properly escapes at the right times. If we remove it, potential badness will still exist at the consumer the moment they run a decodeURIComponent on the makeapi's data. I would still be strongly in favour of also writing a tiny library that lets consumers tell it "safely populate this element with that data" like makeapi.populate($('tags'), "tags") or something. That way we're not passing the buck.
Flags: needinfo?(pomax)
I've decided to leave the filtering in, for safety's sake.
Status: ASSIGNED → RESOLVED
Closed: 12 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: