mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-09-13 09:26:23 -07:00
Audit potential bugs pointed out by Deepsource
This commit is contained in:
parent
12ce2a71be
commit
2a49de7575
3 changed files with 17 additions and 18 deletions
|
@ -736,9 +736,9 @@ func wordfiltersCallback(_ http.ResponseWriter, request *http.Request, staff *gc
|
|||
var editFilter *gcsql.Wordfilter
|
||||
if editIDstr != "" {
|
||||
editID := gcutil.HackyStringToInt(editIDstr)
|
||||
for _, filter := range wordfilters {
|
||||
for w, filter := range wordfilters {
|
||||
if filter.ID == editID {
|
||||
editFilter = &filter
|
||||
editFilter = &wordfilters[w]
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue