From ad74d1f1e92d006c94b7452fc010bbb39c325d37 Mon Sep 17 00:00:00 2001 From: tofulm Date: Sat, 21 Mar 2020 09:10:37 +0100 Subject: [PATCH] on passe par une url securise --- bigform_options.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bigform_options.php b/bigform_options.php index 0624d40..ac31b69 100644 --- a/bigform_options.php +++ b/bigform_options.php @@ -18,7 +18,9 @@ if (!defined('_ECRIRE_INC_VERSION')) { function urls_propres2($i, &$entite, $args = '', $ancre = '') { if ($entite === 'document' and intval($i)) { if (sql_countsel('spip_documents',['id_document='.$i, 'protected="oui"'])) { - return generer_url_action('charger_document','id_document='.$i); + //return generer_url_action('charger_document','id_document='.$i); + include_spip('inc/securiser_action'); + return securiser_action_auteur('charger_document','id_document='.$i); } }