Daniel Supernault пре 7 месеци
родитељ
комит
79d73c508c
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      app/Util/ActivityPub/Inbox.php

+ 2 - 2
app/Util/ActivityPub/Inbox.php

@@ -417,8 +417,8 @@ class Inbox
             return;
             return;
         }
         }
 
 
-        $msg = $activity['content'];
-        $msgText = strip_tags($activity['content']);
+        $msg = Purify::clean($activity['content']);
+        $msgText = strip_tags($msg);
 
 
         if (Str::startsWith($msgText, '@'.$profile->username)) {
         if (Str::startsWith($msgText, '@'.$profile->username)) {
             $len = strlen('@'.$profile->username);
             $len = strlen('@'.$profile->username);