summaryrefslogtreecommitdiff
path: root/include/login_form.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-04 13:40:54 +0300
committerAndrew Dolgov <[email protected]>2021-03-04 13:40:54 +0300
commit4fda5ccd0e248750f68b4a9802044d02f84eb7cc (patch)
treece129e5ecec1c37cabd38ab9c439f103f4ca6e55 /include/login_form.php
parent30765805fddfcbec2ee18f96905a530ae30427d1 (diff)
fix a bunch of bookmarklets login forms not leading back
Diffstat (limited to 'include/login_form.php')
-rwxr-xr-xinclude/login_form.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/login_form.php b/include/login_form.php
index 91850b768..be6734d07 100755
--- a/include/login_form.php
+++ b/include/login_form.php
@@ -85,7 +85,7 @@
</script>
-<?php $return = urlencode(Config::make_self_url()) ?>
+<?php $return = urlencode($_REQUEST['return'] ? $_REQUEST['return'] : with_trailing_slash(Config::make_self_url())) ?>
<div class="container">