diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-06-16 04:04:36 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-06-16 04:04:36 +0400 |
commit | 66b5355e5935ab05e50ba57e58a708de737746d9 (patch) | |
tree | 68bc0aeca77728b977551f8a049d8fa60c37c6f6 /tests/resources | |
parent | 414c6a28eb5302026cea8b19693d4a44aa2f8b91 (diff) |
Throw exception when site Ids array is empty, to prevent error:
Error: 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 ')
GROUP BY idsite, date1, date2' at line 5
Payload: /index.php?date=last10&format=rss&idSite=12345%27%22\%27\%22%29;|]*{%0d%0a%3C%00%3E%bf%27%27&method=Actions.getPageUrl&module=API&pageUrl=http://forum.piwik.org/&period=day&token_auth=anonymous&translateColumnNames=1
Diffstat (limited to 'tests/resources')
0 files changed, 0 insertions, 0 deletions