- Check the destrination URL before redirecting.
parent
2fc741867d
commit
23423b46fb
|
@ -605,7 +605,7 @@ function user_login($edit = array(), $msg = "") {
|
|||
** Redirect the user to the page he logged on from.
|
||||
*/
|
||||
|
||||
drupal_goto($edit["destination"]);
|
||||
drupal_goto(check_url($edit["destination"]));
|
||||
}
|
||||
else {
|
||||
if (!$error) {
|
||||
|
|
|
@ -605,7 +605,7 @@ function user_login($edit = array(), $msg = "") {
|
|||
** Redirect the user to the page he logged on from.
|
||||
*/
|
||||
|
||||
drupal_goto($edit["destination"]);
|
||||
drupal_goto(check_url($edit["destination"]));
|
||||
}
|
||||
else {
|
||||
if (!$error) {
|
||||
|
|
Loading…
Reference in New Issue