Fix combining character set, allow limit for combining characters

This commit is contained in:
f89s
2023-03-28 19:01:12 +04:00
parent 08c9929eb0
commit 90bf50fa30
2 changed files with 8 additions and 13 deletions

View File

@@ -485,8 +485,11 @@
// Strip superfluous new lines at the end of a post.
$config['strip_superfluous_returns'] = true;
// Strip combining characters from Unicode strings (eg. "Zalgo").
/// Strip combining characters from Unicode strings (eg. "Zalgo"). This will impact some non-English languages.
$config['strip_combining_chars'] = true;
// Maximum number of combining characters in a row allowed in Unicode strings so that they can still be used in moderation.
// Requires $config['strip_combining_chars'] = true;
$config['max_combining_chars'] = 3;
// Maximum post body length.
$config['max_body'] = 1800;