From ab060332f00911b9a8ffcccf77d2ea7b67dc91e7 Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Sat, 1 May 2021 22:53:08 +0100 Subject: [PATCH] [Posting] Don't sanitize on storage We prefer to have the original input in database and sanitize on output when appropriate --- components/Posting/Posting.php | 1 - 1 file changed, 1 deletion(-) diff --git a/components/Posting/Posting.php b/components/Posting/Posting.php index 65790ad0c2..47aff43683 100644 --- a/components/Posting/Posting.php +++ b/components/Posting/Posting.php @@ -104,7 +104,6 @@ END; */ public static function storeNote(int $actor_id, ?string $content, array $attachments, bool $is_local, ?int $reply_to = null, ?int $repeat_of = null) { - $content = Security::sanitize($content); $note = Note::create([ 'gsactor_id' => $actor_id, 'content' => $content,