Closed (fixed)
Project:
Prepopulate
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2006 at 20:41 UTC
Updated:
13 Sep 2006 at 23:15 UTC
In the case were the key of the edit array does not exist in the form array, a new element with that name will be created. e.g.
http://www.example.com/node/add/story?edit[rubbish]=hello
will add an element 'rubbish' to the form.
While this element doesn't actually appear on the page as it hasn't any attributes, I don't think it should happen. The attached patch fixes this.
It also checks that the array keys in $_GET['edit'] are child_elements - it seems like it might be a wise thing to do, though may not be strictly necessary.
| Comment | File | Size | Author |
|---|---|---|---|
| no-element-creation.patch.txt | 1.22 KB | egfrith |
Comments
Comment #1
eafarris commentedCommitted to HEAD. Thanks!
Comment #2
(not verified) commented