aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTobi823 <Tobi823@users.noreply.github.com>2018-09-21 13:23:39 +0200
committerTobi823 <Tobi823@users.noreply.github.com>2018-09-21 13:23:39 +0200
commit7a65c2017bf4dd47414df27d0a07829580392c96 (patch)
treed511202d3ad158ec7bc29c84e193817644580099
parentc01d9532920ec5a298bb347dbb83a078d36d4841 (diff)
downloadwallabag-7a65c2017bf4dd47414df27d0a07829580392c96.tar.gz
wallabag-7a65c2017bf4dd47414df27d0a07829580392c96.tar.zst
wallabag-7a65c2017bf4dd47414df27d0a07829580392c96.zip
Override the value of the given parameter ($title) with the (hopefully)
correct (to UTF-8) converted PDF title
-rw-r--r--src/Wallabag/CoreBundle/Helper/ContentProxy.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
index 50090100..ce82f6bc 100644
--- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php
+++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
@@ -77,8 +77,7 @@ class ContentProxy
77 */ 77 */
78 private function sanitizeContentTitle($title, $contentType) { 78 private function sanitizeContentTitle($title, $contentType) {
79 if ('application/pdf' === $contentType) { 79 if ('application/pdf' === $contentType) {
80 $convertedTitle = $this->convertPdfEncodingToUTF8($title); 80 $title = $this->convertPdfEncodingToUTF8($title);
81 return $this->sanitizeUTF8Text($convertedTitle);
82 } 81 }
83 return $this->sanitizeUTF8Text($title); 82 return $this->sanitizeUTF8Text($title);
84 } 83 }