From 7f7c08aec1ddb73542bddae84df331ed8459e131 Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 15 Jul 2010 19:09:15 +0000 Subject: Using elgg_strip_tags() for notification body. git-svn-id: http://code.elgg.org/elgg/trunk@6720 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/notification.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/lib/notification.php b/engine/lib/notification.php index 7f949c32f..5ab9626c3 100644 --- a/engine/lib/notification.php +++ b/engine/lib/notification.php @@ -327,7 +327,7 @@ function elgg_send_email($from, $to, $subject, $body, array $params = NULL) { // Format message $body = html_entity_decode($body, ENT_COMPAT, 'UTF-8'); // Decode any html entities - $body = strip_tags($body); // Strip tags from message + $body = elgg_strip_tags($body); // Strip tags from message $body = preg_replace("/(\r\n|\r)/", "\n", $body); // Convert to unix line endings in body $body = preg_replace("/^From/", ">From", $body); // Change lines starting with From to >From @@ -447,7 +447,7 @@ function object_notifications($event, $object_type, $object) { foreach($NOTIFICATION_HANDLERS as $method => $foo) { $interested_users = elgg_get_entities_from_relationship(array( 'relationship' => 'notify' . $method, - 'relationship_guid' => $object->container_guid, + 'relationship_guid' => $object->container_guid, 'inverse_relationship' => TRUE, 'types' => 'user', 'limit' => 99999 -- cgit v1.2.3