From 64fe044def5fd6c890fbe3a08d40cc98dd938e13 Mon Sep 17 00:00:00 2001 From: Sascha Greuel Date: Fri, 19 Apr 2024 11:21:13 +0200 Subject: [PATCH] Replace privacy policy (required) confirmation See https://www.it-recht-kanzlei.de/edsa-zustimmung-in-datenschutzerklaerung-versto%C3%9F-gegen-treu-und-glauben.html --- com.woltlab.wcf/templates/contact.tpl | 14 +------------- .../install/files/lib/form/ContactForm.class.php | 14 -------------- wcfsetup/install/lang/de.xml | 2 +- wcfsetup/install/lang/en.xml | 2 +- 4 files changed, 3 insertions(+), 29 deletions(-) diff --git a/com.woltlab.wcf/templates/contact.tpl b/com.woltlab.wcf/templates/contact.tpl index 9dd22d8b151..509c4279e5d 100644 --- a/com.woltlab.wcf/templates/contact.tpl +++ b/com.woltlab.wcf/templates/contact.tpl @@ -77,19 +77,7 @@ {/if} - -
-
- - {if $errorField == 'privacyPolicyConfirmed'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {/if} - - {/if} -
- +

{lang}wcf.contact.confirmPrivacyPolicy{/lang}

{event name='sections'} diff --git a/wcfsetup/install/files/lib/form/ContactForm.class.php b/wcfsetup/install/files/lib/form/ContactForm.class.php index e9959889ea0..c41a1c16350 100644 --- a/wcfsetup/install/files/lib/form/ContactForm.class.php +++ b/wcfsetup/install/files/lib/form/ContactForm.class.php @@ -67,12 +67,6 @@ class ContactForm extends AbstractCaptchaForm */ public $recipientList; - /** - * user has confirmed the privacy policy - * @var bool - */ - public $privacyPolicyConfirmed = 0; - /** * @var string */ @@ -122,9 +116,6 @@ public function readFormParameters() if (isset($_POST['recipientID'])) { $this->recipientID = \intval($_POST['recipientID']); } - if (!empty($_POST['privacyPolicyConfirmed'])) { - $this->privacyPolicyConfirmed = 1; - } } /** @@ -175,10 +166,6 @@ public function validate() throw new UserInputException('recipientID', 'invalid'); } } - - if (!$this->privacyPolicyConfirmed) { - throw new UserInputException('privacyPolicyConfirmed'); - } } /** @@ -242,7 +229,6 @@ public function assignVariables() 'options' => $this->optionHandler->getOptions(), 'recipientList' => $this->recipientList, 'recipientID' => $this->recipientID, - 'privacyPolicyConfirmed' => $this->privacyPolicyConfirmed, 'attachmentHandler' => $this->attachmentHandler, 'attachmentObjectID' => 0, 'attachmentObjectType' => $this->attachmentObjectType, diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index a93eaaf620a..8c504b1f1b6 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -3577,7 +3577,7 @@ Dateianhänge: - Datenschutzerklärung gelesen und stimme dieser zu. *]]> + Datenschutzerklärung.]]> diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index c7cd4624ca5..e63b7b0b473 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -3503,7 +3503,7 @@ Attachments: - privacy policy and expressly accept it. *]]> + Privacy Policy.]]>