Active
Project:
Context Redirect
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2013 at 10:32 UTC
Updated:
2 May 2023 at 17:40 UTC
Jump to comment: Most recent
I created a simple redirect:
Path:
expert
expert/*
Redirect to: user/login
So when I try to access www.example.com/expert I end up in an endless loop.
I checked the code. drupal_goto is being called.
[...snip...]
// A destination in $_GET always overrides the function arguments.
// We do not allow absolute URLs to be passed via $_GET, as this can be an attack vector.
if (isset($_GET['destination']) && !url_is_external($_GET['destination'])) {
$destination = drupal_parse_url($_GET['destination']);
$path = $destination['path'];
$options['query'] = $destination['query'];
$options['fragment'] = $destination['fragment'];
}
Since $_GET['destination'] is always filled with 'expert' the $path variable is always reset to expert when it should go to user/login instead.
Comments
Comment #1
kevinquillen commented