From 37baa03880cabecce3074d7f4c07c3adb5821371 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 14 Jul 2008 10:30:42 -0400 Subject: [PATCH] encode special chars in atom payload darcs-hash:20080714143042-84dde-8da6275ea2bf0e0ce4691d8f56e1b932727efcd8.gz --- lib/jabber.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; -- 2.39.5