Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
In redirect.admin.inc, the redirect_element_validate_redirect function contains code that seemingly does nothing.
It sets $value twice, to two different items, without using the variable in between the two definitions.
It checks to see if $value is not equal to '<front>', but earlier it passes the value through drupal_get_normal_path(), which modifies '<front>' to an empty string.
This was discovered when I was trying to exempt <front> from validation in my patch for #2327247: Validate internal URLs so redirects cannot lead to 404 pages.
Comments
Comment #1
kpaxman CreditAttribution: kpaxman commented