Skip to content

Commit f603bc2

Browse files
committed
Merge pull request #16 from damienalexandre/patch-1
Fix wrong call to mb_convert_encoding in resolve()
2 parents 36a5c99 + 164e8c8 commit f603bc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)