mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-19 02:20:09 +01:00
Override the value of the given parameter ($title) with the (hopefully)
correct (to UTF-8) converted PDF title
This commit is contained in:
parent
c01d953292
commit
7a65c2017b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user