diff --git a/ecrire/public/styliser.php b/ecrire/public/styliser.php index eb31e22602c46986fc188275d6aebd48661a9960..5a0bb18003164b3c0e5b0932b0c59a44b017f348 100644 --- a/ecrire/public/styliser.php +++ b/ecrire/public/styliser.php @@ -27,7 +27,9 @@ function public_styliser_dist($fond, $id_rubrique, $lang='', $connect='', $ext=' $trouver_table = charger_fonction('trouver_table', 'base'); include_spip('inc/autoriser'); if (autoriser('sauvegarder') - AND $table = $trouver_table($fond, $connect)) { + AND preg_match('/^table:(.*)$/', $fond, $r) + AND $table = $trouver_table($r[1], $connect)) { + $fond = $r[1]; $base = _DIR_TMP . $fond . ".$ext"; if (!file_exists($base) OR $GLOBALS['var_mode']) {