bugfix, only use url reutrn-to parameter if not empty

This commit is contained in:
2025-11-12 16:30:26 -05:00
parent e27d393165
commit 40a98c0e72
+2 -2
View File
@@ -105,8 +105,8 @@ class Auth {
}
/* if request is valid login attempt, (set cookie and) return to where they came from */
if ($this->login()) {
if (isset($this->get['rt'])) {
header("Location: {$this->get['rt']}");
if ($this->getReturnTo()) {
header("Location: {$this->getReturnTo()}");
} else if (getenv('PREAUTH_SEND_TO')) {
header("Location: " . getenv('PREAUTH_SEND_TO'));
}