diff options
| author | jvoisin | 2023-01-31 20:16:21 +0100 |
|---|---|---|
| committer | jvoisin | 2023-01-31 20:25:14 +0100 |
| commit | 78e451eaf99e8f239867def2d8220dfa348cc167 (patch) | |
| tree | dcd1f1964634919bd0b9784d3546fd3690f389a1 /src/sp_utils.c | |
| parent | 26f9987a538dc68d5a825b1712d3456a2d7aa109 (diff) | |
Add sp.log_max_len
Diffstat (limited to 'src/sp_utils.c')
| -rw-r--r-- | src/sp_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_utils.c b/src/sp_utils.c index 3107f77..0fae9ba 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c | |||
| @@ -300,7 +300,7 @@ void sp_log_disable(const char* restrict path, const char* restrict arg_name, | |||
| 300 | char* char_repr = NULL; | 300 | char* char_repr = NULL; |
| 301 | if (arg_value) { | 301 | if (arg_value) { |
| 302 | char_repr = zend_string_to_char(arg_value); | 302 | char_repr = zend_string_to_char(arg_value); |
| 303 | sp_sanitize_charstring(char_repr, 255); | 303 | sp_sanitize_charstring(char_repr, SPCFG(log_max_len)); |
| 304 | } | 304 | } |
| 305 | if (alias) { | 305 | if (alias) { |
| 306 | sp_log_auto( | 306 | sp_log_auto( |
| @@ -341,7 +341,7 @@ void sp_log_disable_ret(const char* restrict path, | |||
| 341 | } | 341 | } |
| 342 | if (ret_value) { | 342 | if (ret_value) { |
| 343 | char_repr = zend_string_to_char(ret_value); | 343 | char_repr = zend_string_to_char(ret_value); |
| 344 | sp_sanitize_charstring(char_repr, 255); | 344 | sp_sanitize_charstring(char_repr, SPCFG(log_max_len)); |
| 345 | } | 345 | } |
| 346 | if (alias) { | 346 | if (alias) { |
| 347 | sp_log_auto( | 347 | sp_log_auto( |
