1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-22 17:18:37 +00:00

Avoid duplicate url with accents

This commit is contained in:
Jeremy Benoist 2016-10-01 17:57:38 +02:00
parent c4bf7af96f
commit 19ca0b2f35
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 36 additions and 1 deletions

View file

@ -281,7 +281,7 @@ class EntryRepository extends EntityRepository
public function findByUrlAndUserId($url, $userId)
{
$res = $this->createQueryBuilder('e')
->where('e.url = :url')->setParameter('url', $url)
->where('e.url = :url')->setParameter('url', urldecode($url))
->andWhere('e.user = :user_id')->setParameter('user_id', $userId)
->getQuery()
->getResult();