Unverified Commit 87fc0a7d authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3186524 by longwave, alexpott, xjm, Spokje: Fix htaccess files for PHP 8

parent d87707c8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -32,6 +32,11 @@ AddEncoding gzip svgz
  php_value assert.active                   0
</IfModule>

# PHP 8, Apache 1 and 2.
<IfModule mod_php.c>
  php_value assert.active                   0
</IfModule>

# Requires mod_expires to be enabled.
<IfModule mod_expires.c>
  # Enable expirations.
+3 −0
Original line number Diff line number Diff line
@@ -77,6 +77,9 @@ protected static function htaccessPreventExecution() {
<IfModule mod_php7.c>
  php_flag engine off
</IfModule>
<IfModule mod_php.c>
  php_flag engine off
</IfModule>
EOF;
  }

+5 −0
Original line number Diff line number Diff line
@@ -32,6 +32,11 @@ AddEncoding gzip svgz
  php_value assert.active                   0
</IfModule>

# PHP 8, Apache 1 and 2.
<IfModule mod_php.c>
  php_value assert.active                   0
</IfModule>

# Requires mod_expires to be enabled.
<IfModule mod_expires.c>
  # Enable expirations.
+3 −0
Original line number Diff line number Diff line
@@ -75,6 +75,9 @@ protected static function htaccessPreventExecution() {
<IfModule mod_php7.c>
  php_flag engine off
</IfModule>
<IfModule mod_php.c>
  php_flag engine off
</IfModule>
EOF;
  }