diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-10-02 13:14:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-02 13:14:16 +0200 |
commit | 92395680b6ac76a2776f3635803b5de447014b11 (patch) | |
tree | 03246535a5f4ca9c1fdbdea4e4748ae19fbeb338 /src/Wallabag | |
parent | 52c1fc7449554c942c945e6c740e0e11d2f60a0d (diff) | |
parent | d6d3fb6e4c92ec8d71b3f8c6d91e0f8ab80f795b (diff) | |
download | wallabag-92395680b6ac76a2776f3635803b5de447014b11.tar.gz wallabag-92395680b6ac76a2776f3635803b5de447014b11.tar.zst wallabag-92395680b6ac76a2776f3635803b5de447014b11.zip |
Merge pull request #2328 from wallabag/avoid-duplicate-url
Avoid duplicate url with accents
Diffstat (limited to 'src/Wallabag')
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 2 |
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(); |