ThibG d386d89179 Fix invalid votes from the API being accepted (#12601)
* Fix invalid votes from the API being accepted

Fixes #12556

- Ensure `choice` is an integer instead of silently converting to 0
- Ensure `choice` corresponds to an actual choice of the poll

* Please CodeClimate
2020-01-12 14:17:03 +01:00
..
2019-09-04 20:44:08 +02:00
2019-11-13 23:02:10 +01:00
2016-08-17 17:58:00 +02:00
2018-05-25 18:36:26 +02:00