Forum Moderators: coopster
They also mentioned that the problem was with the POST variable redirect.
Can someone please help me? This is part of the php script:
$template = new Template("templates/subscription_done");
$template->set_file("tpl_subscription_done", "subscription_done.tpl");
if (isset($redirect) && trim($redirect) <> "") {
$redirect = trim($redirect);
if (!eregi("^https?://", $redirect)) $redirect = "http://$redirect";
$template->set_var("REDIRECT","<meta HTTP-EQUIV=\"REFRESH\" CONTENT=\"60; URL=$redirect\">");
$template->set_var("CONTINUE","<a href=\"$redirect\">Click here to continue</a>");
}
Never trust user input. Start by reviewing the user-supplied data for what you expect in those fields. If it does not match your editing criteria, do not accept the request, manage the errors and redisplay your form for the user to review and correct.
Somewhere in your code you are setting the $redirect field, likely in the template you show here. Find out where that data is being supplied and scrub it.