Closed Bug 435022 Opened 18 years ago Closed 18 years ago

Get rid of AMO->clean() calls

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 373767

People

(Reporter: wenzel, Unassigned)

References

Details

We should get rid of AMO->clean() calls in our controllers for the following reasons: - while it's the controllers' job to filter input, it's the models' job to escape data before it's sent to the database. - AMO->clean's escaped data is being written back to the view and displayed to the user, that shouldn't happen (and it's the reason for many bugs, all of which I'll try to depend on this one) When this happens, we need to make sure though that all custom SQL queries properly escape their input data. CCing fligtar who said he's going to move the dev CP's custom SQL to the models for AMO 3.5. Maybe we should make this bug's changes for 3.5 too then, so we don't have to change some things twice.
Depends on: 414458
Depends on: 426441
Depends on: 411608
Fligtar, can you maybe avoid using AMO->clean in your 3.5 implementation? That would make the cleanup significantly easier when we tackle this bug here.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Verified dup
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.