BUG 000 Backwards compatibility with the URL parameter in the POST

This commit is contained in:
Julio Cesar Laura
2011-10-10 12:14:38 -04:00
parent d5c3ebdfd0
commit 0567feda00

View File

@@ -258,7 +258,13 @@ try {
} }
} }
else { else {
G::header('Location: ' . $oUserProperty->redirectTo($_SESSION['USER_LOGGED'], $lang)); if (isset($_POST['form']['URL']) && $_POST['form']['URL'] != '') {
$sLocation = $_POST['form']['URL'];
}
else {
$sLocation = $oUserProperty->redirectTo($_SESSION['USER_LOGGED'], $lang);
}
G::header('Location: ' . $sLocation);
die(); die();
} }