mirror of
https://github.com/knadh/listmonk.git
synced 2025-12-05 16:00:03 +01:00
Clean root URL of trailing slashes when updating settings.
This commit is contained in:
@@ -121,6 +121,8 @@ func handleUpdateSettings(c echo.Context) error {
|
|||||||
return echo.NewHTTPError(http.StatusBadRequest, app.i18n.T("settings.errorNoSMTP"))
|
return echo.NewHTTPError(http.StatusBadRequest, app.i18n.T("settings.errorNoSMTP"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set.AppRootURL = strings.TrimRight(set.AppRootURL, "/")
|
||||||
|
|
||||||
// Bounce boxes.
|
// Bounce boxes.
|
||||||
for i, s := range set.BounceBoxes {
|
for i, s := range set.BounceBoxes {
|
||||||
// Assign a UUID. The frontend only sends a password when the user explicitly
|
// Assign a UUID. The frontend only sends a password when the user explicitly
|
||||||
|
|||||||
Reference in New Issue
Block a user