From 20ce689854edbcb196678c45f6526767d5128d08 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 18 Dec 2013 17:23:20 +0100 Subject: [PATCH] Remove duplicate variable assignment in MessageUtil --- wcfsetup/install/files/lib/util/MessageUtil.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/util/MessageUtil.class.php b/wcfsetup/install/files/lib/util/MessageUtil.class.php index 04601f006a..66544e40b1 100644 --- a/wcfsetup/install/files/lib/util/MessageUtil.class.php +++ b/wcfsetup/install/files/lib/util/MessageUtil.class.php @@ -34,7 +34,7 @@ class MessageUtil { // remove 4 byte utf-8 characters as MySQL < 5.5 does not support them // see http://stackoverflow.com/a/16902461/782822 - $text = $text = preg_replace('/[\xF0-\xF7].../s', '', $text); + $text = preg_replace('/[\xF0-\xF7].../s', '', $text); // remove control characters $text = preg_replace('~[\x00-\x08\x0B-\x1F\x7F]~', '', $text); -- 2.20.1