- Check the destrination URL before redirecting.

4.2.x
Dries Buytaert 2003-06-07 15:59:49 +00:00
parent 2fc741867d
commit 23423b46fb
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {