mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-20 04:26:16 +00: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
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue