diff options
author | Andrew Dolgov <[email protected]> | 2021-03-04 13:40:54 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-03-04 13:40:54 +0300 |
commit | 4fda5ccd0e248750f68b4a9802044d02f84eb7cc (patch) | |
tree | ce129e5ecec1c37cabd38ab9c439f103f4ca6e55 /classes | |
parent | 30765805fddfcbec2ee18f96905a530ae30427d1 (diff) |
fix a bunch of bookmarklets login forms not leading back
Diffstat (limited to 'classes')
-rwxr-xr-x | classes/handler/public.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index 0e82b6469..15ea01103 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -834,9 +834,12 @@ class Handler_Public extends Handler { } } - static function _render_login_form() { + static function _render_login_form(string $return_to = "") { header('Cache-Control: public'); + if ($return_to) + $_REQUEST['return'] = $return_to; + require_once "login_form.php"; exit; } |