Fix InfluxDb receives IPAddress as a value regression from v15.0.1.3 (#24031)
This commit is contained in:
parent
623dea884f
commit
efca3b86b6
@ -19,6 +19,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Extension Manager exception when `OtaUrl` is not defined or invalid
|
- Extension Manager exception when `OtaUrl` is not defined or invalid
|
||||||
- HASPmota exception in `cpicker` (colorwheel) (#24010)
|
- HASPmota exception in `cpicker` (colorwheel) (#24010)
|
||||||
- Extension Manager Light Theme support and Extensions input field control
|
- Extension Manager Light Theme support and Extensions input field control
|
||||||
|
- InfluxDb receives IPAddress as a value regression from v15.0.1.3 (#24031)
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|||||||
@ -124,6 +124,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
|
|||||||
- Refactored library UDisplay [#24007](https://github.com/arendst/Tasmota/issues/24007)
|
- Refactored library UDisplay [#24007](https://github.com/arendst/Tasmota/issues/24007)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
- InfluxDb receives IPAddress as a value regression from v15.0.1.3 [#24031](https://github.com/arendst/Tasmota/issues/24031)
|
||||||
- TLS fix ECDSA and add `SetOption165 1` to enable ECDSA in addition to RSA [#24000](https://github.com/arendst/Tasmota/issues/24000)
|
- TLS fix ECDSA and add `SetOption165 1` to enable ECDSA in addition to RSA [#24000](https://github.com/arendst/Tasmota/issues/24000)
|
||||||
- Extension Manager exception when `OtaUrl` is not defined or invalid
|
- Extension Manager exception when `OtaUrl` is not defined or invalid
|
||||||
- Extension Manager Light Theme support and Extensions input field control
|
- Extension Manager Light Theme support and Extensions input field control
|
||||||
|
|||||||
@ -292,6 +292,9 @@ char* InfluxDbNumber(char* alternative, JsonParserToken value) {
|
|||||||
char* source = (char*)value.getStr();
|
char* source = (char*)value.getStr();
|
||||||
// Test for valid numeric data ('-.0123456789') or ON, OFF etc. as defined in kOptions
|
// Test for valid numeric data ('-.0123456789') or ON, OFF etc. as defined in kOptions
|
||||||
if (source != nullptr) {
|
if (source != nullptr) {
|
||||||
|
if (ChrCount(source, ".") > 1) { // IPAddress like 192.168.2.123
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
char* out = source;
|
char* out = source;
|
||||||
// Convert special text as found in kOptions to a number
|
// Convert special text as found in kOptions to a number
|
||||||
// Like "OFF" -> 0, "ON" -> 1, "TOGGLE" -> 2
|
// Like "OFF" -> 0, "ON" -> 1, "TOGGLE" -> 2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user