mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 23:25:30 +02:00
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/10240] Added code to strip control characters from messages.
This commit is contained in:
commit
4754e11d67
@ -691,6 +691,9 @@ function censor_text($text)
|
||||
return '';
|
||||
}
|
||||
|
||||
// Strip control characters
|
||||
$text = preg_replace('/[\x00-\x0f]/', '', $text);
|
||||
|
||||
// We moved the word censor checks in here because we call this function quite often - and then only need to do the check once
|
||||
if (!isset($censors) || !is_array($censors))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user