X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fsecurity.php;h=ffab0e0953f8486fc89b427932e92b6cce2b0d32;hb=aeb6e53d02fdbc3208851a9a4dc8323db29c62c5;hp=0a4379d952340ce58fceb8938e614e5623862c15;hpb=cdc41d6018e8e564b545e3c2eb6c77602c5ff2b4;p=friendica.git diff --git a/include/security.php b/include/security.php index 0a4379d952..ffab0e0953 100644 --- a/include/security.php +++ b/include/security.php @@ -1,6 +1,7 @@ user = $user_record; @@ -147,7 +148,7 @@ function authenticate_success($user_record, $login_initial = false, $interactive call_hooks('logged_in', $a->user); if (($a->module !== 'home') && isset($_SESSION['return_url'])) { - goaway(App::get_baseurl() . '/' . $_SESSION['return_url']); + goaway(System::baseUrl() . '/' . $_SESSION['return_url']); } } } @@ -428,7 +429,7 @@ function check_form_security_token_redirectOnErr($err_redirect, $typename = '', logger('check_form_security_token failed: user ' . $a->user['guid'] . ' - form element ' . $typename); logger('check_form_security_token failed: _REQUEST data: ' . print_r($_REQUEST, true), LOGGER_DATA); notice( check_form_security_std_err_msg() ); - goaway(App::get_baseurl() . $err_redirect ); + goaway(System::baseUrl() . $err_redirect ); } } function check_form_security_token_ForbiddenOnErr($typename = '', $formname = 'form_security_token') {