aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-10-01 17:57:38 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-10-01 18:00:11 +0200
commit19ca0b2f355a657dd296bfa782473ffd45280572 (patch)
tree2e820ab1efa3ad414fcf45a88afaf2933824eecc /src
parentc4bf7af96f52aaafd13049e74f27b368eec79bf8 (diff)
downloadwallabag-19ca0b2f355a657dd296bfa782473ffd45280572.tar.gz
wallabag-19ca0b2f355a657dd296bfa782473ffd45280572.tar.zst
wallabag-19ca0b2f355a657dd296bfa782473ffd45280572.zip
Avoid duplicate url with accents
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
index 302e5a53..1b023e96 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -281,7 +281,7 @@ class EntryRepository extends EntityRepository
281 public function findByUrlAndUserId($url, $userId) 281 public function findByUrlAndUserId($url, $userId)
282 { 282 {
283 $res = $this->createQueryBuilder('e') 283 $res = $this->createQueryBuilder('e')
284 ->where('e.url = :url')->setParameter('url', $url) 284 ->where('e.url = :url')->setParameter('url', urldecode($url))
285 ->andWhere('e.user = :user_id')->setParameter('user_id', $userId) 285 ->andWhere('e.user = :user_id')->setParameter('user_id', $userId)
286 ->getQuery() 286 ->getQuery()
287 ->getResult(); 287 ->getResult();