Fixed multiline configuration processing
The regular expression used when cleaning multiline configuration parameters didn't match trailing backslash characters in pathnames. This caused them to be added to the next line causing a possible error.
This commit is contained in:
@ -146,7 +146,7 @@ char* config_clean_string_list(char* str)
|
||||
int re_err;
|
||||
size_t err_offset;
|
||||
|
||||
if ((re = pcre2_compile((PCRE2_SPTR) "[[:space:],]*([^,]+)\\b[[:space:],]*", PCRE2_ZERO_TERMINATED, 0,
|
||||
if ((re = pcre2_compile((PCRE2_SPTR) "[[:space:],]*([^,]*[^[:space:],])[[:space:],]*", PCRE2_ZERO_TERMINATED, 0,
|
||||
&re_err, &err_offset, NULL)) == NULL ||
|
||||
(data = pcre2_match_data_create_from_pattern(re, NULL)) == NULL)
|
||||
{
|
||||
|
Reference in New Issue
Block a user