mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 01:46:00 +00:00
fix a bunch of bookmarklets login forms not leading back
This commit is contained in:
@@ -236,6 +236,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
function with_trailing_slash(string $str) : string {
|
||||
if (substr($str, -1) === "/") {
|
||||
return $str;
|
||||
} else {
|
||||
return "$str/";
|
||||
}
|
||||
}
|
||||
|
||||
function make_password($length = 12) {
|
||||
$password = "";
|
||||
$possible = "0123456789abcdfghjkmnpqrstvwxyzABCDFGHJKMNPQRSTVWXYZ*%+^";
|
||||
|
||||
@@ -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">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user