diff options
author | Brion Vibber <brion@pobox.com> | 2010-09-30 11:29:31 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-09-30 11:29:31 -0700 |
commit | 1acc7d66c63e0b9f794791e3a2e2b0f60bc2ebb1 (patch) | |
tree | aab9121a9d831110e5282fc2a5c9f138a73b27f4 /lib | |
parent | 91f25ca8170fa537a80161ff80190eea55c88b06 (diff) |
Always specify UTF-8 targt charset for html_entity_decode(); default is 8-bit ISO-8859-1 which causes things to break when we later pass them through things that expect to work with UTF-8. For instance, running through preg_replace() with the /u option results in NULL, leading to problems with OStatus and SubMirror generating their plaintext versions and doing length-cropping.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/activityobject.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/activityobject.php b/lib/activityobject.php index 95615d581..c957933d0 100644 --- a/lib/activityobject.php +++ b/lib/activityobject.php @@ -203,7 +203,7 @@ class ActivityObject $title = ActivityUtils::childHtmlContent($element, self::TITLE); - $this->title = html_entity_decode(strip_tags($title)); + $this->title = html_entity_decode(strip_tags($title), ENT_QUOTES, 'UTF-8'); $this->source = $this->_getSource($element); |