on passe par une url securise
This commit is contained in:
parent
f8850765de
commit
ad74d1f1e9
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue