aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-14 12:37:03 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-14 12:37:03 +0000
commit0d82e48feeb23d9862e94652ad0d9ae6e1649b2e (patch)
tree9842b72b5c6b290ba20d912223a231b0807933ad
parentb0394cf6b2e731a47026ee3001209cefdee567d8 (diff)
downloadelgg-0d82e48feeb23d9862e94652ad0d9ae6e1649b2e.tar.gz
elgg-0d82e48feeb23d9862e94652ad0d9ae6e1649b2e.tar.bz2
Refs #139: Using UTF-8 encoding as a speculative fix. Test and confirm.
git-svn-id: https://code.elgg.org/elgg/trunk@1415 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/opendd.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/opendd.php b/engine/lib/opendd.php
index 5093cdee1..7ebd1445b 100644
--- a/engine/lib/opendd.php
+++ b/engine/lib/opendd.php
@@ -209,7 +209,7 @@
foreach ($this->attributes as $k => $v)
$attr .= ($v!="") ? "$k=\"$v\" " : "";
- $body = htmlentities($this->getBody());
+ $body = htmlentities($this->getBody(), NULL, 'UTF-8');
$tag = $this->getTagName();
$end = "/>";
@@ -310,7 +310,7 @@
$odd->setAttribute($k,$v);
// Body
- $odd->setBody(html_entity_decode($element->content));
+ $odd->setBody(html_entity_decode($element->content, NULL, 'UTF-8'));
}
return $odd;