diff options
author | Steve Clay <steve@mrclay.org> | 2012-10-11 15:49:02 -0400 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2012-11-07 16:55:38 -0500 |
commit | 6648304aa71067a05b0d4166396f5f93c0f66628 (patch) | |
tree | acc332d05de9199b59dc2b7320a530d801ea95f4 /engine/lib/upgrades | |
parent | d134beadb79fcc90a75bda8bbcbfb9987b27470c (diff) | |
download | elgg-6648304aa71067a05b0d4166396f5f93c0f66628.tar.gz elgg-6648304aa71067a05b0d4166396f5f93c0f66628.tar.bz2 |
Better HTML decoding and output/email encoding
Diffstat (limited to 'engine/lib/upgrades')
-rw-r--r-- | engine/lib/upgrades/2010052601.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engine/lib/upgrades/2010052601.php b/engine/lib/upgrades/2010052601.php index 5b477910f..a9cca6dc5 100644 --- a/engine/lib/upgrades/2010052601.php +++ b/engine/lib/upgrades/2010052601.php @@ -9,14 +9,14 @@ $params = array('type' => 'group', $groups = elgg_get_entities($params); if ($groups) { foreach ($groups as $group) { - $group->name = html_entity_decode($group->name, ENT_COMPAT, 'UTF-8'); - $group->description = html_entity_decode($group->description, ENT_COMPAT, 'UTF-8'); - $group->briefdescription = html_entity_decode($group->briefdescription, ENT_COMPAT, 'UTF-8'); - $group->website = html_entity_decode($group->website, ENT_COMPAT, 'UTF-8'); + $group->name = _elgg_html_decode($group->name); + $group->description = _elgg_html_decode($group->description); + $group->briefdescription = _elgg_html_decode($group->briefdescription); + $group->website = _elgg_html_decode($group->website); if ($group->interests) { $tags = $group->interests; - foreach ($tags as $index=>$tag) { - $tags[$index] = html_entity_decode($tag, ENT_COMPAT, 'UTF-8'); + foreach ($tags as $index => $tag) { + $tags[$index] = _elgg_html_decode($tag); } $group->interests = $tags; } |