From 3c49fe9817cc6e9d190ad30638c2e7f28e8d162e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20Gro=C3=9Fberndt?= <stephan@grossberndt.de>
Date: Sat, 28 May 2016 14:08:51 +0200
Subject: [PATCH] [TASK] Add comment explaining spamProtectEmailAddresses=ascii

Resolves: #76351
Releases: master
Change-Id: Ic6971eaa4f2bf195022334c103e5af0a6079aed3
Reviewed-on: https://review.typo3.org/48359
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
---
 .../frontend/Classes/Controller/TypoScriptFrontendController.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php b/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
index 510101408da1..81f52cc9bb42 100644
--- a/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
+++ b/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
@@ -3770,6 +3770,7 @@ class TypoScriptFrontendController
     public function encryptEmail($string, $back = false)
     {
         $out = '';
+        // obfuscates using the decimal HTML entity references for each character
         if ($this->spamProtectEmailAddresses === 'ascii') {
             $stringLength = strlen($string);
             for ($a = 0; $a < $stringLength; $a++) {
-- 
GitLab