Skip to content

Commit 164e8c8

Browse files
Fix wrong call to mb_convert_encoding in resolve()
The charset is extracted from the ContentType, and mb_convert_encoding is called, but the actual $content is never converted to UTF-8 ($content is not passed by reference in this method).
1 parent 36a5c99 commit 164e8c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Embed/Url.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private function resolve () {
6969
$charset = substr(strtoupper(strstr($charset, '=')), 1);
7070

7171
if (!empty($charset) && ($charset !== 'UTF-8')) {
72-
@mb_convert_encoding($content, 'UTF-8', $charset);
72+
$content = @mb_convert_encoding($content, 'UTF-8', $charset);
7373
}
7474
} else if (strpos($this->getResult('content_type'), '/') !== false) {
7575
$this->result['mime_type'] = $this->getResult('content_type');

0 commit comments

Comments
 (0)