Fix suggested path in install process

This commit is contained in:
Laurent Destailleur 2026-06-12 19:00:27 +02:00
parent 042479da9e
commit dc0c293f51

View file

@ -230,6 +230,11 @@ if (!empty($force_install_noedit)) {
if (empty($dolibarr_main_data_root)) {
$dolibarr_main_data_root = GETPOSTISSET('main_data_dir') ? GETPOST('main_data_dir') : detect_dolibarr_main_data_root($dolibarr_main_document_root);
}
// Correct value if dolibarr_main_data_root contains '..'
if (strpos($dolibarr_main_data_root, '..') !== false) {
$dolibarr_main_data_root = dirname($dolibarr_main_document_root).'/documents';
}
?>
<td class="label">
<input type="text"