From 471805e6b430170f660bba08b86b71393d3f06df Mon Sep 17 00:00:00 2001 From: Timur Ismagilov Date: Fri, 31 Dec 2021 02:10:00 +0500 Subject: [PATCH] Recent changes: Return the 100 cap --- web/history.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/history.go b/web/history.go index 9c84b28..6023a64 100644 --- a/web/history.go +++ b/web/history.go @@ -52,6 +52,9 @@ func handlerHistory(w http.ResponseWriter, rq *http.Request) { func handlerRecentChanges(w http.ResponseWriter, rq *http.Request) { // Error ignored: filtered by regex n, _ := strconv.Atoi(mux.Vars(rq)["count"]) + if n > 100 { + return + } var lc = l18n.FromRequest(rq) util.HTTP200Page(w, views.BaseHTML( lc.GetPlural("ui.recent_title", n),