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

Merge pull request #2328 from wallabag/avoid-duplicate-url

Avoid duplicate url with accents
This commit is contained in:
Nicolas Lœuillet 2016-10-02 13:14:16 +02:00 committed by GitHub
commit 92395680b6
2 changed files with 45 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();