1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-26 18:21:01 +00:00

Fix incorrect conversion between integer types

This commit is contained in:
Frédéric Guillot 2022-01-19 21:18:12 -08:00
parent 2f7ad3ac73
commit 897d8644c5
2 changed files with 16 additions and 2 deletions

View file

@ -74,7 +74,7 @@ func (s *SettingsForm) Validate() error {
// NewSettingsForm returns a new SettingsForm.
func NewSettingsForm(r *http.Request) *SettingsForm {
entriesPerPage, err := strconv.ParseInt(r.FormValue("entries_per_page"), 10, 64)
entriesPerPage, err := strconv.ParseInt(r.FormValue("entries_per_page"), 10, 0)
if err != nil {
entriesPerPage = 0
}