Panel fix

This commit is contained in:
cpq committed 2026-04-20 10:55:18 +01:00
1 parent 8030f8f8b5
commit 5163d8a1c7
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -3250,7 +3250,7 @@ static inline bool mg_parse_field(struct mg_str json, struct mg_field *f,
} else if (f->type == MG_VAL_DBL) {
ok = mg_json_get_num(json, "$", &val->d);
} else if (f->type == MG_VAL_STR) {
val->s = trimq(json);
val->s = json;
} else if (f->type == MG_VAL_FN) {
val->s = json;
}
+1 -1
View File
@@ -112,7 +112,7 @@ static inline bool mg_parse_field(struct mg_str json, struct mg_field *f,
} else if (f->type == MG_VAL_DBL) {
ok = mg_json_get_num(json, "$", &val->d);
} else if (f->type == MG_VAL_STR) {
val->s = trimq(json);
val->s = json;
} else if (f->type == MG_VAL_FN) {
val->s = json;
}
@@ -16,7 +16,7 @@ static void location_get(union mg_val *val) {
val->s = mg_str(s_location);
}
static void location_set(const union mg_val *val) {
mg_json_unescape(val->s, s_location, sizeof(s_location));
mg_json_unescape(val->s, "$", s_location, sizeof(s_location));
}
static void threshold_get(union mg_val *val) {