when working on #93854: Allow autocompletion requests to include slashes some code zombies sprang into my eye:
* in drupal_valid_path we have a variable that is used but not defined.
* as i am in it, documented the $dynamic_allowed parameter
see attached patch.

when i wondered why noone noticed such a bug ($dynamic_allowed cannot work correctly right now) i noticed
* drupal_valid_path is only called by menu_edit_item_validate in a WRONG way but this only does not result in a bug (that would make it possible to add "node/%" as a link) because of above bug.

it is also possible to KILL the whole $dynamic_allowed parameter, noone is using it.

Comments

geek-merlin’s picture

geek-merlin’s picture

Status: Active » Needs review
jody lynn’s picture

Status: Needs review » Closed (duplicate)
StatusFileSize
new1.88 KB