From 21912423e123e9259107df43dccba2ed948040ac Mon Sep 17 00:00:00 2001
From: Stefan Galinski <stefan@sgalinski.de>
Date: Wed, 4 Dec 2019 23:46:25 +0100
Subject: [PATCH] =?UTF-8?q?[FEATURE]=20Re=C5=84der=20the=20mail=20address?=
 =?UTF-8?q?=20spam=20protected?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Resources/Private/Language/de.locallang.xlf        | 4 ++++
 Resources/Private/Language/locallang.xlf           | 3 +++
 Resources/Private/Templates/Joblist/ApplyForm.html | 3 ++-
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/Resources/Private/Language/de.locallang.xlf b/Resources/Private/Language/de.locallang.xlf
index 4a6d688c..842f164c 100644
--- a/Resources/Private/Language/de.locallang.xlf
+++ b/Resources/Private/Language/de.locallang.xlf
@@ -378,6 +378,10 @@
 				<source><![CDATA[Vacancies worldwide]]></source>
 				<target><![CDATA[Offene Stellen weltweit]]></target>
 			</trans-unit>
+			<trans-unit id="frontend.emailContact">
+				<source><![CDATA[Email Contact]]></source>
+				<target><![CDATA[E-Mail-Kontakt]]></target>
+			</trans-unit>
 		</body>
 	</file>
 </xliff>
\ No newline at end of file
diff --git a/Resources/Private/Language/locallang.xlf b/Resources/Private/Language/locallang.xlf
index 854086d2..6b022c4e 100644
--- a/Resources/Private/Language/locallang.xlf
+++ b/Resources/Private/Language/locallang.xlf
@@ -285,6 +285,9 @@
 			<trans-unit id="frontend.teaserHeadline">
 				<source><![CDATA[Vacancies worldwide]]></source>
 			</trans-unit>
+			<trans-unit id="frontend.emailContact">
+				<source><![CDATA[Email Contact]]></source>
+			</trans-unit>
 		</body>
 	</file>
 </xliff>
\ No newline at end of file
diff --git a/Resources/Private/Templates/Joblist/ApplyForm.html b/Resources/Private/Templates/Joblist/ApplyForm.html
index 2fe43b84..f8d81a63 100644
--- a/Resources/Private/Templates/Joblist/ApplyForm.html
+++ b/Resources/Private/Templates/Joblist/ApplyForm.html
@@ -60,7 +60,8 @@
 							<f:if condition="!{job.hideApplyByEmail}">
 								<p>
 									<f:format.raw><f:translate key="frontend.job.via.email" extensionName="project_theme" /></f:format.raw><br>
-									<a href="mailto:{job.contact.email}">{job.contact.email}</a>
+									<f:comment><!-- Spam Protection (lib.parseFunc encodes adresses --></f:comment>
+									<f:format.html parseFuncTSPath="lib.parseFunc"><a href="mailto:{job.contact.email}"><f:translate key="frontend.emailContact" /></a></f:format.html>
 								</p>
 							</f:if>
 
-- 
GitLab