From: Tobi823 Date: Fri, 21 Sep 2018 11:23:39 +0000 (+0200) Subject: Override the value of the given parameter ($title) with the (hopefully) X-Git-Tag: 2.3.4~15^2~3 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=7a65c2017bf4dd47414df27d0a07829580392c96;p=github%2Fwallabag%2Fwallabag.git Override the value of the given parameter ($title) with the (hopefully) correct (to UTF-8) converted PDF title --- 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 */ 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); }