From 16624eac1c5a517c118c873f2f7fb14555b8a097 Mon Sep 17 00:00:00 2001 From: "nicod@lerebooteux.fr" <> Date: Mon, 24 Jun 2019 12:07:21 +0000 Subject: [PATCH] =?UTF-8?q?Reconnaitre=20la=20signature=20<formulaire|form?= =?UTF-8?q?idable|identifiant>=20(un=20mod=C3=A8le=20formidable=20ne=20con?= =?UTF-8?q?tient=20pas=20forc=C3=A9ment=20id=3Didentifiant)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- formidable_pipelines.php | 12 ++++++++---- paquet.xml | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/formidable_pipelines.php b/formidable_pipelines.php index 71e3ef34..be45a68e 100644 --- a/formidable_pipelines.php +++ b/formidable_pipelines.php @@ -51,10 +51,14 @@ function formidable_trouve_liens($texte) { ); } elseif ($r[2] == 'formulaire|formidable') { $args = ltrim($r[4], '|'); - $args = explode('=', $args); - $args = $args[1]; - $args = explode('|', $args); - $args = trim(reset($args)); + if(strpos($args,'=')!==false) { + $args = explode('=', $args); + $args = $args[1]; + } + if(strpos($args,'|')!==false) { + $args = explode('|', $args); + $args = trim(reset($args)); + } if (is_numeric($args)) { $id_formulaire = intval($args); } else { diff --git a/paquet.xml b/paquet.xml index f91990a0..5f03508c 100644 --- a/paquet.xml +++ b/paquet.xml @@ -1,7 +1,7 @@ <paquet prefix="formidable" categorie="communication" - version="3.38.3" + version="3.38.4" etat="stable" compatibilite="[3.0.0;3.2.*]" logo="images/formidable-64.png" -- GitLab