$ curl 'https://www.example.test/components/com_flexicontent/tasks/core.php?task=txtautocomplete&type=basic_index&text=e&lang=&pageNum='
Error: Could not find template "xxx".: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-20, 20' at line 1
$ curl 'https://www.example.test/components/com_flexicontent/tasks/core.php?task=txtautocomplete&type=basic_index&text=e&lang=&pageNum=-1'
Error: Could not find template "xxx".: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-40, 20' at line 1
We should make sure the pageNum start with 1 to avoid SQL errors
Steps to reproduce
We should make sure the
pageNum
start with 1 to avoid SQL errors