Skip to content

Commit

Permalink
[htaccess] Modifies rule to allow spaces in filename when downloading…
Browse files Browse the repository at this point in the history
… files. (#9029)

The flags B and BNP were added to the rewrite rule that redirect to index.php. This is need as files who have spaces in the name are not longer downloading (e.g. the Document Repository)

This issue seems to appear after the upgrade of the Apache server. More details can be found in the original issue.

Resolves #8706
  • Loading branch information
racostas authored Feb 27, 2024
1 parent a55cb25 commit 9fbe7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ RewriteRule ^([a-zA-Z_-]+)/ajax/([a-zA-Z0-9_.-]+)$ AjaxHelper.php?Module=$1&scri
RewriteCond "%{REQUEST_FILENAME}" "!-f" [OR]
# Redirect homepage URLs to also use index.php
RewriteCond "%{REQUEST_FILENAME}" "(\/main\.php)$"
RewriteRule ^(.*)$ index.php?lorispath=$1 [QSA,L]
RewriteRule ^(.*)$ index.php?lorispath=$1 "[QSA,L,B= ?,BNP]"
</IfModule>

0 comments on commit 9fbe7a6

Please # to comment.