The function node_revisions() has redundant code (it rechecks for access that was already checked by function _node_revision_access()) and also looks at arg(1), arg(3), etc. instead of using params passed into the function from the menu system.
Attached patch corrects the worst of these deficiencies.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | revargcleanup.patch | 3.28 KB | bdragon |
| func_node_revisions_clean_1.patch | 2.96 KB | pwolanin |
Comments
Comment #1
pwolanin commentedneeds re-roll for node module split
Comment #2
bdragon commentedFree reroll courtesy patch bingo.
Comment #3
bdragon commentedClosing -- ended up getting fixed in #201536: Document menu_get_object().
http://drupal.org/node/201536#comment-665103