Avoid redirecting to self

This commit is contained in:
Rouslan Placella 2012-06-27 13:47:05 +01:00
parent c21afeb2dc
commit 237e7f11c9

View File

@ -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'];