Tasmota/tasmota
DavidPletcher 3827bca3cc
remove malformed clutter from webcam status0 JSON response (#23177)
A regression was added in commit 01154e949, which prepends
clutter to the status0 JSON status message.

Example:
```
$ curl 'http://webcam/cm?cmnd=Status0' -u admin:password ; echo
{s}Webcam Frame rate{m}0 FPS{e}{"Status":{"Module":0,"DeviceName":"...
```

The response is not properly formatted JSON and breaks client software.

The problem occurs because a new case statement was added for the
purpose of injecting webcam stats into the JSON status message, but
a break statement is missing and execution falls through to the
following case, which prepends garbage to the output buffer.

With this one-line fix in place, the output is properly formatted:
```
$ curl 'http://tahoe-front-door-cam/cm?cmnd=Status0' -u admin:password ; echo
{"Status":{"Module":0,"DeviceName":"
```

Note that the prior case for FUNC_EVERY_SECOND is also missing a break
statement. That looks wrong to me but it's unrelated to fixing this
issue and I'm inclined to punt that concern to others who are more
familiar with this code.
2025-03-22 08:18:01 +01:00
..
berry Update flasher for Sonoff ZBBridge Pro (#23136) 2025-03-11 23:04:51 +01:00
displaydesc Display template for Waveshare ESP32C6 LCD 1.47 (#22863) 2025-01-22 11:23:20 +01:00
energy_modbus_configs Use standard var spelling for reactive power unit (#22435) 2024-11-08 17:15:03 +01:00
html_compressed auto compress updated html (#22738) 2024-12-29 22:27:10 +01:00
html_uncompressed Bump version v14.3.0.7 - again 2024-11-17 14:03:04 +01:00
include Add telnet graceful close 2025-03-21 16:38:26 +01:00
language Italian language update (#23144) 2025-03-12 19:00:50 +01:00
lvgl_berry LVGL, prepare for HASPmota theme, change: no-grow when clicked, DPI set to 160 (#23040) 2025-02-20 21:13:35 +01:00
tasmota_support Fix filelog and save some bytes 2025-03-21 17:29:04 +01:00
tasmota_xdrv_driver remove malformed clutter from webcam status0 JSON response (#23177) 2025-03-22 08:18:01 +01:00
tasmota_xdsp_display Update changelogs 2024-12-19 17:57:39 +01:00
tasmota_xlgt_light Command 'PixelType' to change the WS2812 color order and channel number (#22876) 2025-01-24 21:21:35 +01:00
tasmota_xnrg_energy Fix ESP32 compilation V9240 2025-03-11 15:12:02 +01:00
tasmota_xsns_sensor [MI BLE] added support for alternative version of LYWSD02MMC (#23169) 2025-03-21 14:30:17 +01:00
tasmota_xx2c_global Reduce stack usage 2024-12-10 11:39:37 +01:00
zigbee Zigbee DIYRuZ_Geiger (#19151) 2023-07-19 20:41:49 +02:00
CMakeLists.txt arduino idf compile prepare 2024-09-21 23:36:37 +02:00
idf_component.yml Prepare IDF Libs compile (#22250) 2024-10-07 18:36:46 +02:00
my_user_config.h Add Telnet server using command Telnet <0|1|port>[,<IP filter>] 2025-03-20 23:11:30 +01:00
tasmota.ino Berry 'tasmota.defer()' (#22976) 2025-02-09 17:56:38 +01:00
user_config_override_sample.h Support for second DNS server 2021-07-29 16:57:04 +02:00