These two functions use raw $_POST, rather than having the relevant operations handled by a _submit function:
http://api.drupal.org/api/HEAD/function/node_admin_content
http://api.drupal.org/api/HEAD/function/comment_admin
In addition to other problems, it causes tabs and help for the admin page to show on the deletion page.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | kill_post_node_4.patch | 6.32 KB | pwolanin |
| #6 | kill_post_node_3.patch | 6.37 KB | pwolanin |
| #5 | kill_post_node_2.patch | 6.92 KB | pwolanin |
| #3 | kill_post_node_1.patch | 6.81 KB | pwolanin |
Comments
Comment #1
pwolanin commenteda quick grep turns up these possible use of raw $_POST:
Comment #2
pwolanin commentedbump - D6 should not ship without fixing this 4.6 legacy code..
Comment #3
pwolanin commentedThis is a partial patch - gets 2 of the 3 uses in node module. The 3rd is tricker since it goes into search module.
Comment #4
pwolanin commentedlet's make this issue only for node module.
a separate issue for FAPI and menu cleanup in taxonomy module: http://drupal.org/node/163297
someone should start one for comment module (if it doesn't exist).
Comment #5
pwolanin commentedActually - this patch should get reviewed as is - no need to wait to fix the 3rd instance. That can come as a separate patch.
same patch attached, but re-rolled to remove offset. Enable/disable a module to force a menu rebuild.
Comment #6
pwolanin commentedfix comment text and unneeded code movement
Comment #7
dmitrig01 commentedhaven't tested, but it passes code review
Comment #8
moshe weitzman commentedcode looks like a nice cleanup. no time to test now - sorry.
Comment #9
dries commentedTried testing it, but the code no longer applies. Requires a re-roll.
Comment #10
pwolanin commentedpatch re-rolled and re-tested.
Note - be sure to enable/disable a module after applying this patch to get a menu rebuild.
Comment #11
dmitrig01 commentedTested - got HEAD from CVS, applied the patch, installed, enabled a module (aggregator, at random) and created five nodes (two stories and three pages).
Deleted a page, that worked. Node operations worked (selecting one, promoting it, refining, demoting another page). The node deletion operation worked as well. It's RTBC. (It actually fixes a bug with multiple clicks - you click delete multiple times on the confirm form for multiple deletes, and it detects it as an illegal choice
Comment #12
dmitrig01 commentedchx, in IRC:
Comment #13
dries commentedTested, reviewed and committed. Thanks! :)
Comment #14
(not verified) commented