summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/user.module2
-rw-r--r--modules/user/user.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/user.module b/modules/user.module
index c9e645199..e7935c7c3 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -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) {
diff --git a/modules/user/user.module b/modules/user/user.module
index c9e645199..e7935c7c3 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -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) {