aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Entity
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2019-01-09 23:29:30 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-01-09 23:31:14 +0100
commit3a2d4cf9fda87760c86320a7f8a5041d1d4256c6 (patch)
treee21e28b440f9318cd3fbb91043e40e0d725bbc5c /src/Wallabag/ApiBundle/Entity
parent4d0c632c70ea50d459c3c55ddda2e0f394dd51cb (diff)
downloadwallabag-3a2d4cf9fda87760c86320a7f8a5041d1d4256c6.tar.gz
wallabag-3a2d4cf9fda87760c86320a7f8a5041d1d4256c6.tar.zst
wallabag-3a2d4cf9fda87760c86320a7f8a5041d1d4256c6.zip
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.
Diffstat (limited to 'src/Wallabag/ApiBundle/Entity')
-rw-r--r--src/Wallabag/ApiBundle/Entity/Client.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/ApiBundle/Entity/Client.php b/src/Wallabag/ApiBundle/Entity/Client.php
index e6f98f98..78349820 100644
--- a/src/Wallabag/ApiBundle/Entity/Client.php
+++ b/src/Wallabag/ApiBundle/Entity/Client.php
@@ -11,7 +11,7 @@ use Wallabag\UserBundle\Entity\User;
11 11
12/** 12/**
13 * @ORM\Table("oauth2_clients") 13 * @ORM\Table("oauth2_clients")
14 * @ORM\Entity 14 * @ORM\Entity(repositoryClass="Wallabag\ApiBundle\Repository\ClientRepository")
15 */ 15 */
16class Client extends BaseClient 16class Client extends BaseClient
17{ 17{