Opened 13 years ago
Last modified 13 years ago
#280 closed defect (FIXED)
One can post comments for non existent media
Reported by: | Elrond | Owned by: | Christopher Allan Webber |
---|---|---|---|
Priority: | major | Milestone: | 0.1.0 |
Component: | programming | Keywords: | |
Cc: | Parent Tickets: |
Description
media\_post\_comment blindly takes the media id from matchdict['media'], which is just filled in from the POST URL. So by faking up a POST URL one can add comments for non existent media. I *think* a simple ``get_user_media_entry`` decorator and a little rewriting should do the trick. Priority High: This can be used to fill the db with invisible cruft! Estimated Time 1.5 h: The code change is done in 10 minutes, but testing it requires to either write test code or fiddle with yuor browser
Note:
See TracTickets
for help on using tickets.