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:
parent
2f7ad3ac73
commit
897d8644c5
2 changed files with 16 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue