aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_profile_fields.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2006-11-12 14:29:32 +0000
committerNils Adermann <naderman@naderman.de>2006-11-12 14:29:32 +0000
commitcf34efb06ce62407232d63dd4e73b8afc6e2a4ef (patch)
tree59501fb88bc314e1fd63c122990d35eb9dc96a7f /phpBB/includes/functions_profile_fields.php
parentfa9d7e4ab47cf3655617a815adcfa369ae0e8706 (diff)
downloadforums-cf34efb06ce62407232d63dd4e73b8afc6e2a4ef.tar
forums-cf34efb06ce62407232d63dd4e73b8afc6e2a4ef.tar.gz
forums-cf34efb06ce62407232d63dd4e73b8afc6e2a4ef.tar.bz2
forums-cf34efb06ce62407232d63dd4e73b8afc6e2a4ef.tar.xz
forums-cf34efb06ce62407232d63dd4e73b8afc6e2a4ef.zip
message
git-svn-id: file:///svn/phpbb/trunk@6569 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_profile_fields.php')
-rw-r--r--phpBB/includes/functions_profile_fields.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/functions_profile_fields.php b/phpBB/includes/functions_profile_fields.php
index ca2bf690b6..b35781e198 100644
--- a/phpBB/includes/functions_profile_fields.php
+++ b/phpBB/includes/functions_profile_fields.php
@@ -576,6 +576,11 @@ class custom_profile
else
{
$value = (isset($_REQUEST[$profile_row['field_ident']])) ? request_var($profile_row['field_ident'], $default_value, true) : ((!isset($user->profile_fields[$user_ident]) || $preview) ? $default_value : $user->profile_fields[$user_ident]);
+
+ if (gettype($value) == 'string')
+ {
+ utf8_normalize_nfc(&$value);
+ }
}
switch ($field_validation)
@@ -861,6 +866,7 @@ class custom_profile
case FIELD_STRING:
case FIELD_TEXT:
$var = request_var($var_name, $profile_row['field_default_value'], true);
+ utf8_normalize_nfc(&$var);
break;
case FIELD_INT: