$offset should be cast to an integer in pager plugin

Created on 5 September 2023, 10 months ago

Problem/Motivation

As per πŸ› An empty views pager offset field can cause a PHP type error to be triggered. Needs work the pager offset should be cast to an integer.

Steps to reproduce

Visit a page with an infinite scroll view and set the page query to a large number that is interpretted as a float, e.g ?page=38338634418239816375695216401860819025763069

Proposed resolution

$this->view->query->setOffset((int) $offset);

πŸ“Œ Task
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia acbramley

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024