]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Helper/ContentProxy.php
Override the value of the given parameter ($title) with the (hopefully)
[github/wallabag/wallabag.git] / 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);
     }