diff options
author | zach <zach@controlyourself.ca> | 2008-11-04 03:40:27 -0500 |
---|---|---|
committer | zach <zach@controlyourself.ca> | 2008-11-04 03:40:27 -0500 |
commit | e0c3bf5a75094937315aa09dd9635833f9eb2925 (patch) | |
tree | adf16114472da53b4a5dcad854ff81bf366c1226 /actions | |
parent | 485247e9011e08a6ff0b9a2ff3d7a60bad515a26 (diff) |
Better UTF-8 escaped entity handling. Fixed bad chars in all RSS feeds.
darcs-hash:20081104084027-462f3-ea7ab93938358bf90a1c1851d6f665973beae767.gz
Diffstat (limited to 'actions')
-rw-r--r-- | actions/twitapidirect_messages.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/actions/twitapidirect_messages.php b/actions/twitapidirect_messages.php index a31d18a5c..d6eaf844e 100644 --- a/actions/twitapidirect_messages.php +++ b/actions/twitapidirect_messages.php @@ -133,8 +133,9 @@ class Twitapidirect_messagesAction extends TwitterapiAction { $code = 403, $apidata['content-type']); return; } - - $message = Message::saveNew($user->id, $other->id, $content, $source); + + $message = Message::saveNew($user->id, $other->id, + html_entity_decode($content, ENT_NOQUOTES, 'UTF-8'), $source); if (is_string($message)) { $this->server_error($message); |