on passe par une url securise

This commit is contained in:
Christophe 2020-03-21 09:10:37 +01:00
parent f8850765de
commit ad74d1f1e9

View file

@ -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);
}
}