aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_warn.php
diff options
context:
space:
mode:
authorGaëtan Muller <m.gaetan89@gmail.com>2015-02-02 21:35:46 +0100
committerGaëtan Muller <m.gaetan89@gmail.com>2015-02-03 20:50:40 +0100
commitabcb2680eec86dc8016c489ebc7362e29be9e4df (patch)
treeea0491929e6c625d639e4036166365aaae582fc7 /phpBB/includes/mcp/mcp_warn.php
parentf6e06da4c68917dafb057bf7fe19f884a3e148c2 (diff)
downloadforums-abcb2680eec86dc8016c489ebc7362e29be9e4df.tar
forums-abcb2680eec86dc8016c489ebc7362e29be9e4df.tar.gz
forums-abcb2680eec86dc8016c489ebc7362e29be9e4df.tar.bz2
forums-abcb2680eec86dc8016c489ebc7362e29be9e4df.tar.xz
forums-abcb2680eec86dc8016c489ebc7362e29be9e4df.zip
[ticket/13455] Remove unnecessary calls to `utf8_normalize_nfc()`
PHPBB3-13455
Diffstat (limited to 'phpBB/includes/mcp/mcp_warn.php')
-rw-r--r--phpBB/includes/mcp/mcp_warn.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/mcp/mcp_warn.php b/phpBB/includes/mcp/mcp_warn.php
index 4a3a8b4c2f..970bdc6174 100644
--- a/phpBB/includes/mcp/mcp_warn.php
+++ b/phpBB/includes/mcp/mcp_warn.php
@@ -196,7 +196,7 @@ class mcp_warn
$post_id = $request->variable('p', 0);
$forum_id = $request->variable('f', 0);
$notify = (isset($_REQUEST['notify_user'])) ? true : false;
- $warning = utf8_normalize_nfc($request->variable('warning', '', true));
+ $warning = $request->variable('warning', '', true);
$sql = 'SELECT u.*, p.*
FROM ' . POSTS_TABLE . ' p, ' . USERS_TABLE . " u
@@ -376,7 +376,7 @@ class mcp_warn
$user_id = $request->variable('u', 0);
$username = $request->variable('username', '', true);
$notify = (isset($_REQUEST['notify_user'])) ? true : false;
- $warning = utf8_normalize_nfc($request->variable('warning', '', true));
+ $warning = $request->variable('warning', '', true);
$sql_where = ($user_id) ? "user_id = $user_id" : "username_clean = '" . $db->sql_escape(utf8_clean_string($username)) . "'";