Clean root URL of trailing slashes when updating settings.
This commit is contained in:
parent
04e571d43a
commit
82c3c6878b
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue