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

MySQL error when specifying offset with getUsersPlusRole API #13647

Closed
Findus23 opened this issue Oct 26, 2018 · 0 comments
Closed

MySQL error when specifying offset with getUsersPlusRole API #13647

Findus23 opened this issue Oct 26, 2018 · 0 comments
Assignees
Milestone

Comments

@Findus23
Copy link
Member

Specifying an offset != 0 returns the following error:

SQLSTATE[42000]: Syntax error or access violation: 1064 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 'OFFSET 2' at line 7

index.php?module=API&method=UsersManager.getUsersPlusRole&idSite=1&offset=2&format=JSON&token_auth=THETOKEN

This is not an SQL injection, but rather a constant error because of a misformed SQL query. (probably because of the fact that setting an offset doesn't make that much sense with this API).

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

3 participants