From: Evan Prodromou Date: Mon, 14 Jul 2008 14:30:42 +0000 (-0400) Subject: encode special chars in atom payload X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=37baa03880cabecce3074d7f4c07c3adb5821371;p=quix0rs-gnu-social.git encode special chars in atom payload darcs-hash:20080714143042-84dde-8da6275ea2bf0e0ce4691d8f56e1b932727efcd8.gz --- diff --git a/lib/jabber.php b/lib/jabber.php index d109e40c46..74e51d71a7 100644 --- a/lib/jabber.php +++ b/lib/jabber.php @@ -105,8 +105,8 @@ function jabber_format_entry($profile, $notice) { $entry .= "" . $profile->nickname . "\n"; $entry .= "" . common_profile_avatar_url($profile, AVATAR_PROFILE_SIZE) . "\n"; $entry .= "\n"; - $entry .= "" . $msg . "\n"; - $entry .= "" . $msg . "\n"; + $entry .= "" . htmlspecialchars($msg) . "\n"; + $entry .= "" . htmlspecialchars($msg) . "\n"; $entry .= "\n"; $entry .= "". $notice->uri . "\n"; $entry .= "".common_date_w3dtf($notice->created)."\n";