Remember include_regex
This commit is contained in:
parent
023209c5d5
commit
f2d9d450d0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user