Avoid redirecting to self
This commit is contained in:
parent
c21afeb2dc
commit
237e7f11c9
@ -35,6 +35,7 @@ unset($drops, $each_drop);
|
||||
// If we have a valid a valid target, lets load that script instead
|
||||
if (! empty($_REQUEST['target'])
|
||||
&& is_string($_REQUEST['target'])
|
||||
&& ! preg_match('/^index/', $_REQUEST['target'])
|
||||
&& in_array($_REQUEST['target'], $goto_whitelist)
|
||||
) {
|
||||
include $_REQUEST['target'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user