Fix combining character set, allow limit for combining characters

This commit is contained in:
discomrade 2021-07-10 01:37:31 -02:00
parent 55e6735024
commit 8b3df89863
3 changed files with 12 additions and 13 deletions

View file

@ -484,8 +484,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'] = 0;
// Maximum post body length.
$config['max_body'] = 1800;