Skip to content

Commit

Permalink
Clean root URL of trailing slashes when updating settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Sep 19, 2023
1 parent 04e571d commit 82c3c68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ func handleUpdateSettings(c echo.Context) error {
return echo.NewHTTPError(http.StatusBadRequest, app.i18n.T("settings.errorNoSMTP"))
}

set.AppRootURL = strings.TrimRight(set.AppRootURL, "/")

// Bounce boxes.
for i, s := range set.BounceBoxes {
// Assign a UUID. The frontend only sends a password when the user explicitly
Expand Down

0 comments on commit 82c3c68

Please sign in to comment.