Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2007 at 02:29 UTC
Updated:
8 Jul 2007 at 00:47 UTC
Jump to comment: Most recent file
Comments
Comment #1
pwolanin commentedAddresses a similar problem in comment module's comment_render(), and changes the callback form node/%/% to node/%/comment/% to minimize false matches to this callback.
Comment #2
chx commentedYes, this is needed.
Comment #3
Steven commentedIf we change the path for the comment callback, shouldn't links pointing to it be changed too? Unless this callback is not actually used anywhere... in which case it should be removed.
Comment #4
flk commentedthis patch also solves the problem regarding editing the item 'My Account' (admin/build/menu/item/edit/23).
when you try to change anything about that item atm you get the foreach error caused by user_load which doesnt check whether the value being sent is numeric.
Comment #5
flk commentedfurther more access denied error occurs when one tries to edit 'My Account' item after using this patch due to the fact when you submit the form it passes it menu_edit_item_validate which in turn does menu_get_item($path).
What the current patch does it solves the problem with user_load by making sure the value passed is numeric...once it has passed user_load, menu_get_item still returns false due to teh fact that in the menu_router table the path use/% doesnt exist.
(well thats how i see it anyways lol)
not sure if this should be another bug or not
Comment #6
pwolanin commentedgood point - I found it now:
Comment #7
pwolanin commentedComment #8
chx commentedWhy are you changing the comment url...?
Comment #9
pwolanin commented@chx changing the callback form node/%/% to node/%/comment/% to minimize false matches to this callback. For example, if I want to pass parameters via the URL to a PHP-format node.
Comment #10
webernet commentedTested the patch, it fixes the notices/warnings with "node/asdf" and, as expected, returns a "Page not found" instead of "Access denied".
Looks good to me.
Comment #11
chx commentedYou are breaking many existing links for no good reason, and it does not belong here. Please remove the path changes.
Comment #12
chx commentedRerolled against head and removed the path changes and per webernet's tests it's ready.
Comment #13
Steven commentedTested and works as expected. Committed to HEAD.
Comment #14
(not verified) commented