From 475a005d409bee70f398838b8ab0a9f0f3161fbd Mon Sep 17 00:00:00 2001
From: Christian Futterlieb <christian@futterlieb.ch>
Date: Wed, 9 Sep 2020 11:16:47 +0200
Subject: [PATCH] [BUGFIX] Do not stop rewrite processing for favicon.ico
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Requests to /favicon.ico should not stop rewrite processing. They could
trigger a static route or could be handeled by an error handler.

Change-Id: Iceff3719604f3d6a2ce2fe2a810cb33e7b4cebb2
Resolves: #92237
Releases: master, 10.4, 9.5
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65645
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
---
 .../Private/FolderStructureTemplateFiles/root-htaccess          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/root-htaccess b/typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/root-htaccess
index 58eaa3a52af3..ecbe7e4eacf6 100644
--- a/typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/root-htaccess
+++ b/typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/root-htaccess
@@ -307,7 +307,7 @@ AddDefaultCharset utf-8
 
 	# Stop rewrite processing, if we are in the typo3/ directory or any other known directory
 	# NOTE: Add your additional local storages here
-	RewriteRule ^(?:typo3/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L]
+	RewriteRule ^(?:typo3/|fileadmin/|typo3conf/|typo3temp/|uploads/) - [L]
 
 	# If the file/symlink/directory does not exist => Redirect to index.php.
 	# For httpd.conf, you need to prefix each '%{REQUEST_FILENAME}' with '%{DOCUMENT_ROOT}'.
-- 
GitLab