From abda4b8592b38f56ec8551292ff444897bc9c70d Mon Sep 17 00:00:00 2001
From: Marc von Schalscha-Ehrenfeld <msa@starfinanz.de>
Date: Fri, 6 May 2016 13:25:22 +0200
Subject: [PATCH] [TASK] Make .htaccess Apache 2.4 suitable

This patch makes EXT:documentation/Resources/Private/.htaccess and
EXT:extbase/Resources/Private/.htaccess Apache 2.4 suitable

Resolves: #76066
Resolves: #76064
Releases: master, 7.6, 6.2
Change-Id: I91c6e683eeb1bc92e1192d2b3800d2dcb8a9d4b9
Reviewed-on: https://review.typo3.org/48023
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
---
 .../sysext/documentation/Resources/Private/.htaccess | 12 +++++++++++-
 typo3/sysext/extbase/Resources/Private/.htaccess     | 12 +++++++++++-
 2 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/typo3/sysext/documentation/Resources/Private/.htaccess b/typo3/sysext/documentation/Resources/Private/.htaccess
index dfc02725466d..9a779b74aea1 100644
--- a/typo3/sysext/documentation/Resources/Private/.htaccess
+++ b/typo3/sysext/documentation/Resources/Private/.htaccess
@@ -1 +1,11 @@
-deny  from all
\ No newline at end of file
+# Apache < 2.3
+<IfModule !mod_authz_core.c>
+	Order allow,deny
+	Deny from all
+	Satisfy All
+</IfModule>
+
+# Apache ≥ 2.3
+<IfModule mod_authz_core.c>
+	Require all denied
+</IfModule>
\ No newline at end of file
diff --git a/typo3/sysext/extbase/Resources/Private/.htaccess b/typo3/sysext/extbase/Resources/Private/.htaccess
index 2e8cdb8910d1..9a2aa5a29957 100644
--- a/typo3/sysext/extbase/Resources/Private/.htaccess
+++ b/typo3/sysext/extbase/Resources/Private/.htaccess
@@ -1 +1,11 @@
-deny  from all
+# Apache < 2.3
+<IfModule !mod_authz_core.c>
+	Order allow,deny
+	Deny from all
+	Satisfy All
+</IfModule>
+
+# Apache ≥ 2.3
+<IfModule mod_authz_core.c>
+	Require all denied
+</IfModule>
-- 
GitLab