Remember include_regex

This commit is contained in:
Peter Stuifzand 2018-07-16 22:26:04 +02:00
parent 023209c5d5
commit f2d9d450d0

View File

@ -569,6 +569,18 @@ func (h *mainHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
h.Backend.Settings[uid] = setting
}
includeRegex := r.FormValue("include_regex")
if setting, e := h.Backend.Settings[uid]; e {
setting.IncludeRegex = includeRegex
h.Backend.Settings[uid] = setting
} else {
setting = channelSetting{
IncludeRegex: includeRegex,
}
h.Backend.Settings[uid] = setting
}
h.Backend.Debug()
http.Redirect(w, r, "/settings", 302)