diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-05-06 12:31:05 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-05-06 12:31:05 +0000 |
| commit | fbfcef1366a0e04510814ced1652dcb4d8e1c66b (patch) | |
| tree | f2a7b8f41b8faa2d1e0620cd5fc74d85b1c3eb76 /phpBB/profile.php | |
| parent | 0938e28471dc91d40521d27edb6c6eb8f9d961df (diff) | |
| download | forums-fbfcef1366a0e04510814ced1652dcb4d8e1c66b.tar forums-fbfcef1366a0e04510814ced1652dcb4d8e1c66b.tar.gz forums-fbfcef1366a0e04510814ced1652dcb4d8e1c66b.tar.bz2 forums-fbfcef1366a0e04510814ced1652dcb4d8e1c66b.tar.xz forums-fbfcef1366a0e04510814ced1652dcb4d8e1c66b.zip | |
Fixed problem with incorrect conversion of line breaks in alter profile
git-svn-id: file:///svn/phpbb/trunk@252 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/profile.php')
| -rw-r--r-- | phpBB/profile.php | 4 |
1 files changed, 2 insertions, 2 deletions
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", "<br />", $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("<br>", "\n", $userdata['user_sig']); + $signature = str_replace("<br />", "\n", $userdata['user_sig']); $viewemail = $userdata['user_viewemail']; $attachsig = $userdata['user_attachsig']; |
