From 5878a12c83b94681f94393202848998364e24033 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Tue, 24 Jan 2023 11:45:37 +0100 Subject: [PATCH] remove HTML allow list --- activitypub.php | 1 - includes/class-admin.php | 9 --------- templates/settings.php | 20 -------------------- 3 files changed, 30 deletions(-) diff --git a/activitypub.php b/activitypub.php index d855d9f..994ef10 100644 --- a/activitypub.php +++ b/activitypub.php @@ -22,7 +22,6 @@ function init() { \defined( 'ACTIVITYPUB_EXCERPT_LENGTH' ) || \define( 'ACTIVITYPUB_EXCERPT_LENGTH', 400 ); \defined( 'ACTIVITYPUB_MAX_IMAGE_ATTACHMENTS' ) || \define( 'ACTIVITYPUB_MAX_IMAGE_ATTACHMENTS', 3 ); \defined( 'ACTIVITYPUB_HASHTAGS_REGEXP' ) || \define( 'ACTIVITYPUB_HASHTAGS_REGEXP', '(?:(?<=\s)|(?<=

)|(?<=
)|^)#([A-Za-z0-9_]+)(?:(?=\s|[[:punct:]]|$))' ); - \defined( 'ACTIVITYPUB_ALLOWED_HTML' ) || \define( 'ACTIVITYPUB_ALLOWED_HTML', '