From 736d794681fb93e86833ca074a003a900e004168 Mon Sep 17 00:00:00 2001 From: iglocska Date: Mon, 19 Jun 2023 08:02:39 +0200 Subject: [PATCH] chg: [htaccess] lock the backreference escaping purely to spaces - if we need more we can change it in the future --- app/.htaccess | 4 ++-- app/webroot/.htaccess | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/.htaccess b/app/.htaccess index b9d0e1016..ec36c63bd 100644 --- a/app/.htaccess +++ b/app/.htaccess @@ -1,5 +1,5 @@ RewriteEngine on - RewriteRule ^$ webroot/ [B,L] - RewriteRule (.*) webroot/$1 [B,L] + RewriteRule ^$ webroot/ "[B= ,L]" + RewriteRule (.*) webroot/$1 "[B= ,L]" diff --git a/app/webroot/.htaccess b/app/webroot/.htaccess index 982ecad92..c23955f5d 100644 --- a/app/webroot/.htaccess +++ b/app/webroot/.htaccess @@ -2,7 +2,7 @@ RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f - RewriteRule ^(.*)$ index.php?/$1 [QSA,L,B] + RewriteRule ^(.*)$ index.php?/$1 "[QSA,L,B= ]" # Adds AUTH support to Rest Plugin: RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization},last]