projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfb7448
)
.htaccess support for OpenLiteSpeed webservers.
author
Kasper Nowak
<54978466+kaspernowak@users.noreply.github.com>
Mon, 3 Oct 2022 12:42:11 +0000
(14:42 +0200)
committer
GitHub
<noreply@github.com>
Mon, 3 Oct 2022 12:42:11 +0000
(14:42 +0200)
The current rewrite rules existing in the created .htaccess files are only supported for Apache webservers, and leaves files exposed on OpenLiteSpeed webservers by default. This is the easiest way to add support for OpenLiteSpeed 1.4.38+.
CRM/Utils/File.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/File.php
b/CRM/Utils/File.php
index 977b9fc8368e8d0cf94ee6635f288379a35c4df1..c2299ec490bcd35ec1831a5f40e386e120ea8bd2 100644
(file)
--- a/
CRM/Utils/File.php
+++ b/
CRM/Utils/File.php
@@
-531,6
+531,11
@@
class CRM_Utils_File {
if (!empty($dir) && is_dir($dir)) {
$htaccess = <<<HTACCESS
<Files "*">
+# OpenLiteSpeed 1.4.38+
+ <IfModule !authz_core_module>
+ RewriteRule .* - [F,L]
+ </IfModule>
+
# Apache 2.2
<IfModule !authz_core_module>
Order allow,deny