Opened 15 years ago
Last modified 15 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
Change History (3)
comment:1 by , 15 years ago
| Component: | → Programming |
|---|
comment:1 by , 15 years ago
| Milestone: | → 0.1.0 |
|---|---|
| Owner: | set to |
| Status: | New → Closed |

FIXED! just in time for 0.1.0 ;)