Merge branch 'master' of ssh://git.gamuza.fr:2222/Gamuza/bigform

This commit is contained in:
clem 2020-12-06 20:55:54 +01:00
commit 68aa039f70
2 changed files with 13 additions and 4 deletions

View file

@ -1,10 +1,19 @@
<?php <?php
if (!defined('_ECRIRE_INC_VERSION')) return; if (!defined('_ECRIRE_INC_VERSION')) return;
function action_charger_document_dist(){ function action_charger_document_dist($arg=null){
$securiser_action = charger_fonction('securiser_action', 'inc'); if (is_null($arg)) {
$arg = $securiser_action(); // DEMI sécurité : s'il y a un hash, on teste la sécurité
if (_request('hash')) {
$securiser_action = charger_fonction('securiser_action', 'inc');
$arg = $securiser_action();
}
// Sinon, on prend l'arg direct
else {
$arg = _request('arg');
}
}
include_spip('inc/autoriser'); include_spip('inc/autoriser');
if (! autoriser("charger","document")) { if (! autoriser("charger","document")) {

View file

@ -1,7 +1,7 @@
<paquet <paquet
prefix="bigform" prefix="bigform"
categorie="edition" categorie="edition"
version="1.1.2" version="1.1.3"
etat="dev" etat="dev"
compatibilite="[3.2.5;3.3.*]" compatibilite="[3.2.5;3.3.*]"
logo="prive/themes/spip/images/bigform-64.png" logo="prive/themes/spip/images/bigform-64.png"