Skip to content

Commit c7128a8

Browse files
Fix open redirect GHSL-2024-288 (#8811)
1 parent fc3c53a commit c7128a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sickchill/views/authentication.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ def post(self, next_=None):
2828
logger.warning(_("User attempted a failed login to the SickChill web interface from IP: ") + self.request.remote_ip)
2929
login_error = _("Incorrect username or password! Both username and password are case sensitive!")
3030

31-
next_ = self.get_query_argument("next", next_)
32-
self.redirect(next_ or "/" + settings.DEFAULT_PAGE + "/")
31+
self.redirect("/" + settings.DEFAULT_PAGE + "/")
3332

3433

3534
class LogoutHandler(BaseHandler):

0 commit comments

Comments
 (0)