]> git.immae.eu Git - github/wallabag/wallabag.git/commit
Cast client id to avoid PG error 3831/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Wed, 9 Jan 2019 22:29:30 +0000 (23:29 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Wed, 9 Jan 2019 22:31:14 +0000 (23:31 +0100)
commit3a2d4cf9fda87760c86320a7f8a5041d1d4256c6
treee21e28b440f9318cd3fbb91043e40e0d725bbc5c
parent4d0c632c70ea50d459c3c55ddda2e0f394dd51cb
Cast client id to avoid PG error

If someone send a malformated client_id when trying to authenticate using the API we got a 500 if wallabag use postgres because the request send a string instead of an integer.
src/Wallabag/ApiBundle/Entity/Client.php
src/Wallabag/ApiBundle/Repository/ClientRepository.php [new file with mode: 0644]
tests/Wallabag/ApiBundle/Controller/DeveloperControllerTest.php