]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Override the value of the given parameter ($title) with the (hopefully)
authorTobi823 <Tobi823@users.noreply.github.com>
Fri, 21 Sep 2018 11:23:39 +0000 (13:23 +0200)
committerTobi823 <Tobi823@users.noreply.github.com>
Fri, 21 Sep 2018 11:23:39 +0000 (13:23 +0200)
correct (to UTF-8) converted PDF title

src/Wallabag/CoreBundle/Helper/ContentProxy.php

index 500901005c3df6b6906baa2d675aade2d0a5b119..ce82f6bc106b2270a304b105af61ca4badd47ceb 100644 (file)
@@ -77,8 +77,7 @@ class ContentProxy
      */
     private function sanitizeContentTitle($title, $contentType) {
         if ('application/pdf' === $contentType) {
-            $convertedTitle = $this->convertPdfEncodingToUTF8($title);
-            return $this->sanitizeUTF8Text($convertedTitle);
+            $title = $this->convertPdfEncodingToUTF8($title);
         }
         return $this->sanitizeUTF8Text($title);
     }