forked from wallabag/wallabag
Override the value of the given parameter ($title) with the (hopefully)
correct (to UTF-8) converted PDF title
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user