diff --git a/3rdparty/imaProtectNewAPI.class.php b/3rdparty/imaProtectNewAPI.class.php index e8f7cbc..389779b 100644 --- a/3rdparty/imaProtectNewAPI.class.php +++ b/3rdparty/imaProtectNewAPI.class.php @@ -422,12 +422,11 @@ public function getTokens() { private function retrieveIMATokens($result) { $array = array(); - preg_match( '/Alarm-status ref="myAlarm" data-token="([^"]*)"/i', $result, $array ) ; - $alarmToken=$array[1]; + preg_match( '/alarm-status token="([^"]*)"/i', $result, $array ) ; $this->statusToken=$array[1]; $array = array(); - preg_match( '/Capture-list ref="myCapture" data-token="([^"]*)"/i', $result, $array ) ; + preg_match( '/capture-list token="([^"]*)"/i', $result, $array ) ; $this->captureToken=$array[1]; } @@ -666,4 +665,4 @@ private function guidv4() { } -?> \ No newline at end of file +?> diff --git a/docs/fr_FR/changelog.md b/docs/fr_FR/changelog.md index 708a5a3..d00ccf8 100644 --- a/docs/fr_FR/changelog.md +++ b/docs/fr_FR/changelog.md @@ -3,10 +3,9 @@ >**IMPORTANT** > >Pour rappel s'il n'y a pas d'information sur la mise à jour, c'est que celle-ci concerne uniquement de la mise à jour de documentation, de traduction ou de texte. - -# 31/05/2023 -- merge branche Beta sur Master - +# 02/04/2024 +- correction récupération token ima protect (suite changement IMA) + # 24/05/2023 - correction anomalie affichage images / icons évènements dans l'historique des évènements - correction anomalie notification et récupération des évènements en erreur (appel IMA)