aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_profile_fields.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2007-08-19 13:40:53 +0000
committerNils Adermann <naderman@naderman.de>2007-08-19 13:40:53 +0000
commitd104d3d969d2fbc77f1004e0e5369e8c0c15738f (patch)
tree188b373ce8876398477e517f242a29ae72cab23e /phpBB/includes/functions_profile_fields.php
parentb8b85e5aca616c1e4b43246daa97a11881fb218d (diff)
downloadforums-d104d3d969d2fbc77f1004e0e5369e8c0c15738f.tar
forums-d104d3d969d2fbc77f1004e0e5369e8c0c15738f.tar.gz
forums-d104d3d969d2fbc77f1004e0e5369e8c0c15738f.tar.bz2
forums-d104d3d969d2fbc77f1004e0e5369e8c0c15738f.tar.xz
forums-d104d3d969d2fbc77f1004e0e5369e8c0c15738f.zip
- BBCode parsing order should ALWAYS be censor_text(), bbcode_secon_pass(), bbcode_nl2br(), smiley_text(), parse_attachments()
- using \r on custom bbcodes to allow line breaks [Bug #10758] git-svn-id: file:///svn/phpbb/trunk@8050 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_profile_fields.php')
-rw-r--r--phpBB/includes/functions_profile_fields.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_profile_fields.php b/phpBB/includes/functions_profile_fields.php
index f3ebe429cd..cbad80e28e 100644
--- a/phpBB/includes/functions_profile_fields.php
+++ b/phpBB/includes/functions_profile_fields.php
@@ -176,7 +176,7 @@ class custom_profile
if (!empty($field_data['field_validation']) && $field_data['field_validation'] != '.*')
{
- $field_validate = ($field_type == FIELD_STRING) ? $field_value : str_replace("\n", ' ', $field_value);
+ $field_validate = ($field_type == FIELD_STRING) ? $field_value : bbcode_nl2br($field_value);
if (!preg_match('#^' . str_replace('\\\\', '\\', $field_data['field_validation']) . '$#i', $field_validate))
{
return 'FIELD_INVALID_CHARS';
@@ -462,7 +462,7 @@ class custom_profile
$value = make_clickable($value);
$value = censor_text($value);
- $value = str_replace("\n", '<br />', $value);
+ $value = bbcode_nl2br($value);
return $value;
break;