correct (to UTF-8) converted PDF title
*/
private function sanitizeContentTitle($title, $contentType) {
if ('application/pdf' === $contentType) {
*/
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);
}
}
return $this->sanitizeUTF8Text($title);
}