Page MenuHomePhorge

D25249.1734858615.diff
No OneTemporary

D25249.1734858615.diff

diff --git a/src/utils/utf8.php b/src/utils/utf8.php
--- a/src/utils/utf8.php
+++ b/src/utils/utf8.php
@@ -718,7 +718,12 @@
'mbstring'));
}
- $result = @mb_convert_encoding($string, $to_encoding, $from_encoding);
+ $available_encodings = mb_list_encodings();
+ if (in_array($to_encoding, $available_encodings)) {
+ $result = @mb_convert_encoding($string, $to_encoding, $from_encoding);
+ } else {
+ $result = false;
+ }
if ($result === false) {
$message = error_get_last();

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 22, 09:10 (21 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1025677
Default Alt Text
D25249.1734858615.diff (510 B)

Event Timeline