encode special chars in atom payload

darcs-hash:20080714143042-84dde-8da6275ea2bf0e0ce4691d8f56e1b932727efcd8.gz
This commit is contained in:
Evan Prodromou 2008-07-14 10:30:42 -04:00
parent e81361812f
commit 37baa03880

View File

@ -105,8 +105,8 @@ function jabber_format_entry($profile, $notice) {
$entry .= "<author><name>" . $profile->nickname . "</name></author>\n"; $entry .= "<author><name>" . $profile->nickname . "</name></author>\n";
$entry .= "<icon>" . common_profile_avatar_url($profile, AVATAR_PROFILE_SIZE) . "</icon>\n"; $entry .= "<icon>" . common_profile_avatar_url($profile, AVATAR_PROFILE_SIZE) . "</icon>\n";
$entry .= "</source>\n"; $entry .= "</source>\n";
$entry .= "<title>" . $msg . "</title>\n"; $entry .= "<title>" . htmlspecialchars($msg) . "</title>\n";
$entry .= "<summary>" . $msg . "</summary>\n"; $entry .= "<summary>" . htmlspecialchars($msg) . "</summary>\n";
$entry .= "<link rel='alternate' href='" . $noticeurl . "' />\n"; $entry .= "<link rel='alternate' href='" . $noticeurl . "' />\n";
$entry .= "<id>". $notice->uri . "</id>\n"; $entry .= "<id>". $notice->uri . "</id>\n";
$entry .= "<published>".common_date_w3dtf($notice->created)."</published>\n"; $entry .= "<published>".common_date_w3dtf($notice->created)."</published>\n";