From 4240e864522538e9b31bccfdedfdf759e6e677fb Mon Sep 17 00:00:00 2001 From: cy_altern Date: Thu, 14 Jan 2021 21:40:43 +0100 Subject: [PATCH] =?UTF-8?q?correction=20=C3=A0=20tester/valider=20:=20on?= =?UTF-8?q?=20peut=20passer=20les=20param=C3=A8tres=20de=20l'url=20du=20PD?= =?UTF-8?q?F=20en=20string=20syst=C3=A9matiquement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/charger_pdf.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inc/charger_pdf.php b/inc/charger_pdf.php index a4bbe9a..6922007 100644 --- a/inc/charger_pdf.php +++ b/inc/charger_pdf.php @@ -4,19 +4,23 @@ if (!defined('_ECRIRE_INC_VERSION')){ } function inc_charger_pdf_dist($fichier_pdf, $contexte = []){ +var_dump($contexte); $login = lire_config('curl_login'); $password = lire_config('curl_mdp'); $url = $GLOBALS['meta']['adresse_site'].'/spip.php?page=spipdf&spipdf='.$fichier_pdf; if (is_array($contexte) and count($contexte)) { foreach ($contexte as $champ => $val) { - if (intval($val)) { +/* if (intval($val) === $val) { + // if (intval($val)) { $val = intval($val); } else { $val = "$val"; } +*/ $url .= "&$champ=$val"; } } + $CurlConnect = curl_init(); // pour une connexion https locale avec certificat auto-signé