From 47ee4e8967573375e068e372b0190093561d6af5 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Tue, 2 Apr 2024 20:11:08 +0000 Subject: [PATCH] 50_SSChatbot: fix 'disabled' is not working when receiving data git-svn-id: https://svn.fhem.de/fhem/trunk@28738 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 3 ++- fhem/FHEM/50_SSChatBot.pm | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 6783ef2ba..7b62810e2 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. -# Do not insert empty lines here, update check depends on it. +# Do not insert empty lines here, update check depends on it + - bugfix: 50_SSChatbot: 'disabled' is not working when receiving data - bugfix: 76_SolarForecast: ctrlWeatherDev1 Drop-Down if no DWD Device exists - feature: 76_SolarForecast: integrate OpenMeteoDWDEnsemble-API - change: 70_PylonLowVoltage: avoid possible Illegal division by zero diff --git a/fhem/FHEM/50_SSChatBot.pm b/fhem/FHEM/50_SSChatBot.pm index 1739e689e..c2e67a2e3 100644 --- a/fhem/FHEM/50_SSChatBot.pm +++ b/fhem/FHEM/50_SSChatBot.pm @@ -3,7 +3,7 @@ ######################################################################################################################### # 50_SSChatBot.pm # -# (c) 2019-2023 by Heiko Maaz +# (c) 2019-2024 by Heiko Maaz # e-mail: Heiko dot Maaz at t-online dot de # # This Module can be used to operate as Bot for Synology Chat. @@ -136,6 +136,7 @@ BEGIN { # Versions History intern my %vNotesIntern = ( + "1.15.1" => "02.04.2024 _botCGIdata: fix 'disabled' is not working when receiving data ", "1.15.0" => "19.05.2023 compatibility to DSM starting with DSM 7.2, Forum: https://forum.fhem.de/index.php?msg=1276303 ", "1.14.0" => "08.04.2023 prepared for new Setter deletePostId, loglevel for HttpUtils ", "1.13.0" => "14.01.2023 new attr spareHost, sparePort ", @@ -1557,6 +1558,9 @@ sub _botCGIdata { return ($mime, $err) if($err); my $name = $dat->{name}; + + return ('text/plain; charset=utf-8', 'disabled') if(IsDisabled($name)); + my $args = $dat->{args}; my $h = $dat->{h};