diff options
| author | Andrew Dolgov <noreply@fakecake.org> | 2021-03-05 15:35:48 +0300 |
|---|---|---|
| committer | Andrew Dolgov <noreply@fakecake.org> | 2021-03-05 15:35:48 +0300 |
| commit | ecb94ec23d52f628e2dcd8a20b56e6608d568608 (patch) | |
| tree | 685f5c7ecf493c0c5e8917062845e9d4efe737fc | |
| parent | 5c1f9f31bdb6418469c3434047c163b4dae8f139 (diff) | |
login page: fix a warning if return is unset
| -rwxr-xr-x | include/login_form.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/login_form.php b/include/login_form.php index be6734d07..9efe0e238 100755 --- a/include/login_form.php +++ b/include/login_form.php @@ -85,7 +85,7 @@ </script> -<?php $return = urlencode($_REQUEST['return'] ? $_REQUEST['return'] : with_trailing_slash(Config::make_self_url())) ?> +<?php $return = urlencode(!empty($_REQUEST['return']) ? $_REQUEST['return'] : with_trailing_slash(Config::make_self_url())) ?> <div class="container"> |