Fix use HTML escape on File System Edit File load (#22492)

This commit is contained in:
Theo Arends 2024-11-21 16:58:45 +01:00
parent 1e9c5ad40e
commit bf872defab
3 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@ All notable changes to this project will be documented in this file.
### Fixed ### Fixed
- ESP32 upgrade by file upload response based on file size (#22500) - ESP32 upgrade by file upload response based on file size (#22500)
- Wrong GUI Module and Template drop down list indexes regression - Wrong GUI Module and Template drop down list indexes regression
- Use HTML escape on File System Edit File load (#22492)
### Removed ### Removed

View File

@ -166,6 +166,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
### Fixed ### Fixed
- FUNC_COMMAND linked list command buffer corruption by shutter driver - FUNC_COMMAND linked list command buffer corruption by shutter driver
- Use HTML escape on File System Edit File load [#22492](https://github.com/arendst/Tasmota/issues/22492)
- Prevent crashing when `display.ini` is missing end `#` [#22471](https://github.com/arendst/Tasmota/issues/22471) - Prevent crashing when `display.ini` is missing end `#` [#22471](https://github.com/arendst/Tasmota/issues/22471)
- Alexa Hue with multiple devices [#22383](https://github.com/arendst/Tasmota/issues/22383) - Alexa Hue with multiple devices [#22383](https://github.com/arendst/Tasmota/issues/22383)
- Mitsubishi Electric HVAC Standby Stage for MiElHVAC [#22430](https://github.com/arendst/Tasmota/issues/22430) - Mitsubishi Electric HVAC Standby Stage for MiElHVAC [#22430](https://github.com/arendst/Tasmota/issues/22430)

View File

@ -1603,7 +1603,7 @@ void UfsEditor(void) {
AddLog(LOG_LEVEL_DEBUG_MORE, PSTR("UFS: UfsEditor: read=%d"), l); AddLog(LOG_LEVEL_DEBUG_MORE, PSTR("UFS: UfsEditor: read=%d"), l);
if (l < 0) { break; } if (l < 0) { break; }
buf[l] = '\0'; buf[l] = '\0';
WSContentSend_P(PSTR("%s"), buf); WSContentSend_P(PSTR("%s"), HtmlEscape((char*)buf).c_str());
filelen -= l; filelen -= l;
} }
fp.close(); fp.close();