.htaccess overwrite in root

Created on 22 February 2025, 3 days ago

Problem/Motivation

After setting the private path in the settings.php, one can potentially take the site offline when the path used points to the root or any other critical system location. Although this an obvious user / configuration error, the module proceeds.

A new .htsaccess file is written at the provided location

Steps to reproduce

Set the file_private_path to the root and proceed.

Proposed resolution

Document the file written with warning to check the location.

Remaining tasks

Trap sensitive locations in the drupal installation.

User interface changes

Add a dialog to ask for confirmation to write the file

API changes

Data model changes

🐛 Bug report
Status

Active

Version

5.0

Component

Documentation

Created by

🇳🇱Netherlands nomad-drupal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024