Problem/Motivation

When user/register is blacklisted by default, and its set to be denied for unauthenticated user, an infinite redirect loop occurs.

Visiting a page with a default 40x menu response code triggers an infinite redirect loop.
This happens because drupal_goto reads from the $_GET['destination'] which is set inside the pages with MENU_NOT_FOUND or MENU_ACCESS_DENIED responses as part of the drupal_deliver_html_page() function.

Proposed resolution

Remove the destination url when calling drupal_goto. This is how most modules deal with it.

Remaining tasks

Submit a patch.

User interface changes

N/A

API changes

N/A

Comments

codebymikey created an issue. See original summary.

codebymikey’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new1.53 KB
smustgrave’s picture

Status: Needs review » Fixed

Currently triaging the D7 queue, since this was a bug and have worked with codebymikey I'm comfortable committing this.

  • smustgrave committed d496f952 on 7.x-2.x
    Issue #3152864 by codebymikey: Redirect loop when accessing "user/...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.