diff --git a/phpBB/profile.php b/phpBB/profile.php index 27c1fe8a08..fdffba603f 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -310,7 +310,7 @@ switch($mode) $location = (!empty($HTTP_POST_VARS['location'])) ? trim(strip_tags(addslashes($HTTP_POST_VARS['location']))) : ""; $occupation = (!empty($HTTP_POST_VARS['occupation'])) ? trim(strip_tags(addslashes($HTTP_POST_VARS['occupation']))) : ""; $interests = (!empty($HTTP_POST_VARS['interests'])) ? trim(addslashes($HTTP_POST_VARS['interests'])) : ""; - $signature = (!empty($HTTP_POST_VARS['signature'])) ? trim(addslashes($HTTP_POST_VARS['signature'])) : ""; + $signature = (!empty($HTTP_POST_VARS['signature'])) ? trim(addslashes(str_replace("\n", "
", $HTTP_POST_VARS['signature']))) : ""; $viewemail = $HTTP_POST_VARS['viewemail']; $attachsig = $HTTP_POST_VARS['attachsig']; @@ -409,7 +409,7 @@ switch($mode) $location = $userdata['user_from']; $occupation = $userdata['user_occ']; $interests = $userdata['user_interests']; - $signature = str_replace("
", "\n", $userdata['user_sig']); + $signature = str_replace("
", "\n", $userdata['user_sig']); $viewemail = $userdata['user_viewemail']; $attachsig = $userdata['user_attachsig'];