]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Remember to purify HTML...
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 5 Dec 2015 14:56:50 +0000 (15:56 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 5 Dec 2015 14:56:50 +0000 (15:56 +0100)
classes/Notice.php

index 8f4d63c8927a6a4e7e5809c4ea44a65b6b8bba43..6fe2e4c76ad6e9dfee40f509932792dc13f9a499 100644 (file)
@@ -814,7 +814,7 @@ class Notice extends Managed_DataObject
         // Use the local user's shortening preferences, if applicable.
         $stored->rendered = $actor->isLocal()
                                 ? $actor->shortenLinks($act->content)
-                                : $act->content;
+                                : common_purify($act->content);
         $stored->content = common_strip_html($stored->rendered);
 
         // Maybe a missing act-time should be fatal if the actor is not local?