Override the value of the given parameter ($title) with the (hopefully)

correct (to UTF-8) converted PDF title
This commit is contained in:
Tobi823 2018-09-21 13:23:39 +02:00
parent c01d953292
commit 7a65c2017b

View file

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