aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index ab0bf8877..53771f896 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -170,6 +170,13 @@
register_error(elgg_view("messages/sanitisation/settings"));
$sanitised = false;
}
+
+ if (!file_exists(dirname(dirname(dirname(__FILE__)))) . "/.htaccess") {
+ if (!copy(dirname(dirname(dirname(__FILE__))) . "/htaccess_dist", dirname(dirname(dirname(__FILE__))) . "/.htaccess")) {
+ register_error(elgg_view("messages/sanitisation/htaccess"));
+ $sanitised = false;
+ }
+ }
return $sanitised;