chg: [htaccess] lock the backreference escaping purely to spaces - if we need more we can change it in the future

pull/9153/head
iglocska 2023-06-19 08:02:39 +02:00
parent 48c8357c00
commit 736d794681
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [B,L]
RewriteRule (.*) webroot/$1 [B,L]
RewriteRule ^$ webroot/ "[B= ,L]"
RewriteRule (.*) webroot/$1 "[B= ,L]"
</IfModule>

View File

@ -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]