[ticket/10240] Reverted a commit which added buggy code.

This reverts commit f9dbe33fa7.

The code which was added also removed new lines and tabs.

PHPBB3-10240
This commit is contained in:
Callum Macrae 2011-08-21 13:14:30 +01:00
parent 1680b3a2a7
commit 4592076366

View file

@ -691,9 +691,6 @@ 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))
{