Skip to content

Commit

Permalink
Backslashs need to be escaped to avoid invalid escape sequences in th…
Browse files Browse the repository at this point in the history
…e TOML file

Signed-off-by: DL6ER <dl6er@dl6er.de>
  • Loading branch information
DL6ER committed Nov 4, 2023
1 parent aa55962 commit c89a239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/config.c
Expand Up @@ -950,7 +950,7 @@ void initConfig(struct config *conf)
conf->webserver.api.excludeDomains.d.json = cJSON_CreateArray();

conf->webserver.api.excludeRegex.k = "webserver.api.excludeRegex";
conf->webserver.api.excludeRegex.h = "Array of regular expressions to be excluded from certain API responses\n Example: [ \"(^|\\.)\\.google\\.de$\", \"\\.pi-hole\\.net$\" ]";
conf->webserver.api.excludeRegex.h = "Array of regular expressions to be excluded from certain API responses. Note that backslashes \"\\\" need to be escaped, i.e. \"\\\\\" in this setting\n Example: [ \"(^|\\\\.)\\\\.google\\\\.de$\", \"\\\\.pi-hole\\\\.net$\" ]";
conf->webserver.api.excludeRegex.a = cJSON_CreateStringReference("array of regular expressions");
conf->webserver.api.excludeRegex.t = CONF_JSON_STRING_ARRAY;
conf->webserver.api.excludeRegex.f = FLAG_RESTART_FTL | FLAG_ADVANCED_SETTING;
Expand Down

0 comments on commit c89a239

Please sign in to comment.