aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-07-15 19:09:15 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-07-15 19:09:15 +0000
commit7f7c08aec1ddb73542bddae84df331ed8459e131 (patch)
tree7ed535bc38312cf51bc317fe649376e74096ced0 /engine
parentd73a2177bfb080f8484707da2faaa5df0ae26c4b (diff)
downloadelgg-7f7c08aec1ddb73542bddae84df331ed8459e131.tar.gz
elgg-7f7c08aec1ddb73542bddae84df331ed8459e131.tar.bz2
Using elgg_strip_tags() for notification body.
git-svn-id: http://code.elgg.org/elgg/trunk@6720 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/notification.php4
1 files 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