From 3fabfb57324732932f62f88835b1813cbadd5725 Mon Sep 17 00:00:00 2001 From: tofulm Date: Mon, 23 Mar 2020 22:28:20 +0100 Subject: [PATCH] Utilisation de EOF pour ecrire le htaccess (plus propre) --- inc/bigform_securiser_doc.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/inc/bigform_securiser_doc.php b/inc/bigform_securiser_doc.php index fdb4330..e9de833 100644 --- a/inc/bigform_securiser_doc.php +++ b/inc/bigform_securiser_doc.php @@ -6,14 +6,16 @@ if (!defined('_ECRIRE_INC_VERSION')){ function bigform_securiser_doc($Tid_doc){ $rep = sous_repertoire(_DIR_IMG, 'PROTECTED'); - $content = "# Deny all requests from Apache 2.4+. + $content = << - Require all denied + Require all denied # Deny all requests from Apache 2.0-2.2. - Deny from all -"; + Deny from all + +rewrite; if (!verifier_htaccess($rep . "/.htaccess")) { ecrire_fichier($rep . "/.htaccess", $content);