]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Using elgg_strip_tags() for notification body.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 15 Jul 2010 19:09:15 +0000 (19:09 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 15 Jul 2010 19:09:15 +0000 (19:09 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6720 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/notification.php

index 7f949c32ff5599abd923838bcedccbfb845d008e..5ab9626c32b6be5e3a81382edf7b37d0c1153043 100644 (file)
@@ -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