Skip to content

Commit

Permalink
Allow javascript .map files in .htaccess (#40735)
Browse files Browse the repository at this point in the history
* Allow javascript .map files in .htaccess
Fixes #40734

* fix syntax

---------

Co-authored-by: Phil Davis <[email protected]>
  • Loading branch information
jnweiger and phil-davis authored Apr 14, 2023
1 parent 8761f4d commit f16b2df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ public static function updateHtaccess() {
$content .= "\n RewriteRule ^core/js/oc.js$ index.php [PT,E=PATH_INFO:$1]";
$content .= "\n RewriteRule ^core/preview.png$ index.php [PT,E=PATH_INFO:$1]";
$content .= "\n RewriteCond %{REQUEST_URI} !\\.(css|js|svg|gif|png|html|ttf|woff|ico|jpg|jpeg|json|properties)$";
$content .= "\n RewriteCond %{REQUEST_URI} !\\.(min|js|auto)\\.map$";
$content .= "\n RewriteCond %{REQUEST_URI} !^$rewriteBaseRe/core/img/favicon\\.ico$";
$content .= "\n RewriteCond %{REQUEST_URI} !^$rewriteBaseRe/robots\\.txt$";
$content .= "\n RewriteCond %{REQUEST_URI} !^$rewriteBaseRe/remote\\.php";
Expand Down

0 comments on commit f16b2df

Please sign in to comment.