mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Only decode from utf8 if we aren't running under utf8.
Please test it. Thanks!
This commit is contained in:
parent
107919b0d6
commit
1f1e3288ca
@ -486,7 +486,9 @@ class hotpot_xml_tree {
|
|||||||
eval('$value = &$this->xml'.$this->xml_root.$tags.$more_tags.';');
|
eval('$value = &$this->xml'.$this->xml_root.$tags.$more_tags.';');
|
||||||
|
|
||||||
if (is_string($value)) {
|
if (is_string($value)) {
|
||||||
$value = utf8_decode($value);
|
if (empty($CFG->unicodedb)) {
|
||||||
|
$value = utf8_decode($value);
|
||||||
|
}
|
||||||
|
|
||||||
// decode angle brackets and ampersands
|
// decode angle brackets and ampersands
|
||||||
$value = strtr($value, array('<'=>'<', '>'=>'>', '&'=>'&'));
|
$value = strtr($value, array('<'=>'<', '>'=>'>', '&'=>'&'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user