MDL-29442 add missing utf-8 to entity html encoding and decoding

This commit is contained in:
Petr Škoda
2012-12-09 18:21:38 +01:00
parent 03953061ca
commit 1a4596e434
10 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -3389,9 +3389,9 @@ class settings_navigation extends navigation_node {
continue;
}
if ($type->modclass == MOD_CLASS_RESOURCE) {
$resources[html_entity_decode($type->type)] = $type->typestr;
$resources[html_entity_decode($type->type, ENT_QUOTES, 'UTF-8')] = $type->typestr;
} else {
$activities[html_entity_decode($type->type)] = $type->typestr;
$activities[html_entity_decode($type->type, ENT_QUOTES, 'UTF-8')] = $type->typestr;
}
}
} else {
@@ -4275,7 +4275,7 @@ class navigation_json {
}
if ($child->forcetitle || $child->title !== $child->text) {
$attributes['title'] = htmlentities($child->title);
$attributes['title'] = htmlentities($child->title, ENT_QUOTES, 'UTF-8');
}
if (array_key_exists($child->key.':'.$child->type, $this->expandable)) {
$attributes['expandable'] = $child->key;