From 0567feda0070cf4c2eee26343ce1a8e28b2b1c8c Mon Sep 17 00:00:00 2001 From: Julio Cesar Laura Date: Mon, 10 Oct 2011 12:14:38 -0400 Subject: [PATCH] BUG 000 Backwards compatibility with the URL parameter in the POST --- workflow/engine/methods/login/authentication.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/workflow/engine/methods/login/authentication.php b/workflow/engine/methods/login/authentication.php index 86bab8bf6..7396eacf6 100755 --- a/workflow/engine/methods/login/authentication.php +++ b/workflow/engine/methods/login/authentication.php @@ -258,7 +258,13 @@ try { } } 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(); }