Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in your SQL syntax with limit in restapi/includes/subscribers.php when calling subscribersGet #30

Open
alexandrenorman opened this issue May 1, 2016 · 0 comments

Comments

@alexandrenorman
Copy link
Contributor

alexandrenorman commented May 1, 2016

Got this error when calling "subscribersGet":

{'type': 'Error', 'data': {'message': "SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''100' OFFSET 0' at line 1", 'code': '42000'}, 'status': 'error'}

Correction proposal for subscribers.php:

32c32
<             $limit = $_REQUEST['limit'];

---
>             $limit = intval($_REQUEST['limit']);
35c35
<             $offset = $_REQUEST['offset'];

---
>             $offset = intval($_REQUEST['offset']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant