From 459207636699ce5c554af115a7677f42630a430e Mon Sep 17 00:00:00 2001 From: Callum Macrae Date: Sun, 21 Aug 2011 13:14:30 +0100 Subject: [PATCH] [ticket/10240] Reverted a commit which added buggy code. This reverts commit f9dbe33fa7917b6220a85a01ed9f395f3f1bb888. The code which was added also removed new lines and tabs. PHPBB3-10240 --- phpBB/includes/functions_content.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php index b34976db2a..b7650ecd6a 100644 --- a/phpBB/includes/functions_content.php +++ b/phpBB/includes/functions_content.php @@ -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)) {