]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #3908 from wallabag/epub-issue-3642
authorJérémy Benoist <j0k3r@users.noreply.github.com>
Mon, 18 Mar 2019 08:26:16 +0000 (09:26 +0100)
committerGitHub <noreply@github.com>
Mon, 18 Mar 2019 08:26:16 +0000 (09:26 +0100)
epub: fix exception when articles have the same title

src/Wallabag/CoreBundle/Helper/EntriesExport.php

index a2aa4d134e4aebe60abcbfce631d1cadc40c18cf..f981ee50e61b8a323ae091f97f1139b82896de17 100644 (file)
@@ -188,7 +188,7 @@ class EntriesExport
             foreach ($entry->getTags() as $tag) {
                 $book->setSubject($tag->getLabel());
             }
-            $filename = sha1($entry->getTitle());
+            $filename = sha1(sprintf('%s:%s', $entry->getUrl(), $entry->getTitle()));
 
             $publishedBy = $entry->getPublishedBy();
             $authors = $this->translator->trans('export.unknown');