From 3ffe6e3f171f31950bfd03adb284005413ac5ff9 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 12 Jun 2020 20:14:39 +0200 Subject: [PATCH] Prompt the user for their approval before displaying external media --- com.woltlab.wcf/option.xml | 5 ++ .../templates/messageUserConsent.tpl | 11 ++++ com.woltlab.wcf/userOption.xml | 7 ++ constants.php | 1 + .../js/WoltLabSuite/Core/BootstrapFrontend.js | 8 ++- .../Core/Ui/Message/UserConsent.js | 65 +++++++++++++++++++ .../lib/acp/form/FirstTimeSetupForm.class.php | 1 + .../provider/BBCodeMediaProvider.class.php | 31 ++++++++- .../files/lib/data/user/UserAction.class.php | 15 +++++ .../files/style/ui/messageUserConsent.scss | 34 ++++++++++ wcfsetup/install/lang/de.xml | 6 ++ wcfsetup/install/lang/en.xml | 6 ++ 12 files changed, 185 insertions(+), 5 deletions(-) create mode 100644 com.woltlab.wcf/templates/messageUserConsent.tpl create mode 100644 wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/UserConsent.js create mode 100644 wcfsetup/install/files/style/ui/messageUserConsent.scss diff --git a/com.woltlab.wcf/option.xml b/com.woltlab.wcf/option.xml index 7e5bea9e46..e12cbd2b80 100644 --- a/com.woltlab.wcf/option.xml +++ b/com.woltlab.wcf/option.xml @@ -1544,6 +1544,11 @@ ruby rust go + +