diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-11-03 21:05:25 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-11-03 21:05:25 +0000 |
commit | 7ab232a45504ef357a19d9ab58dd27c454e12784 (patch) | |
tree | 56724a9a8bd34a4a5ad75b24f78be1b299832899 /phpBB/includes/functions_user.php | |
parent | b0989c3f4d67e6f9d211a526aeee44686e3bc671 (diff) | |
download | forums-7ab232a45504ef357a19d9ab58dd27c454e12784.tar forums-7ab232a45504ef357a19d9ab58dd27c454e12784.tar.gz forums-7ab232a45504ef357a19d9ab58dd27c454e12784.tar.bz2 forums-7ab232a45504ef357a19d9ab58dd27c454e12784.tar.xz forums-7ab232a45504ef357a19d9ab58dd27c454e12784.zip |
ok, i am an idiot...
git-svn-id: file:///svn/phpbb/trunk@6548 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r-- | phpBB/includes/functions_user.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 6be4a26182..56b92f850b 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -1054,11 +1054,11 @@ function validate_string($string, $optional = false, $min = 0, $max = 0) return false; } - if ($min && utf8_strlen(utf8_html_entity_decode($string)) < $min) + if ($min && utf8_strlen(htmlspecialchars_decode($string)) < $min) { return 'TOO_SHORT'; } - else if ($max && utf8_strlen(utf8_html_entity_decode($string)) > $max) + else if ($max && utf8_strlen(htmlspecialchars_decode($string)) > $max) { return 'TOO_LONG'; } @@ -2009,8 +2009,8 @@ function group_user_attributes($action, $group_id, $user_id_ary = false, $userna $messenger->im($row['user_jabber'], $row['username']); $messenger->assign_vars(array( - 'USERNAME' => utf8_html_entity_decode($row['username']), - 'GROUP_NAME' => utf8_html_entity_decode($group_name), + 'USERNAME' => htmlspecialchars_decode($row['username']), + 'GROUP_NAME' => htmlspecialchars_decode($group_name), 'U_GROUP' => generate_board_url() . "/ucp.$phpEx?i=groups&mode=membership") ); |