Skip to content

Commit

Permalink
Fix invalid forum address check
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp committed Jun 22, 2024
1 parent 50bdbf3 commit 75b5736
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion misago/admin/tests/test_admin_system_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def test_warning_about_unprocessed_data_downloads_is_displayed_on_checks_list(


class RequestMock:
absolute_uri = "https://misago-project.org/somewhere/"
absolute_uri = "https://misago-project.org"

def __init__(self, settings):
self.settings = settings
Expand Down
2 changes: 1 addition & 1 deletion misago/admin/views/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def check_https(request):

def check_forum_address(request):
set_address = request.settings.forum_address
correct_address = request.build_absolute_uri("/")
correct_address = request.build_absolute_uri("/").rstrip("/")

return {
"is_ok": set_address == correct_address,
Expand Down

0 comments on commit 75b5736

Please sign in to comment.