From 9fbe7a6cf4e21d6946d79d78cdd9224a0f730678 Mon Sep 17 00:00:00 2001 From: racostas <37309344+racostas@users.noreply.github.com> Date: Tue, 27 Feb 2024 14:27:08 -0500 Subject: [PATCH] [htaccess] Modifies rule to allow spaces in filename when downloading 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 --- htdocs/.htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/.htaccess b/htdocs/.htaccess index 673f34ed716..389687ba1cc 100644 --- a/htdocs/.htaccess +++ b/htdocs/.htaccess @@ -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]"