diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-09-09 01:01:59 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-09-09 01:01:59 +0000 |
commit | 08161e09e21b0e002325550db8bf653a72c8d362 (patch) | |
tree | a610f7fbe7e1222a8b807b19454ab1af33e6e254 /phpBB/includes/functions_user.php | |
parent | 7b037d5e42cd7761a4ac17263acd10df8264f5b8 (diff) | |
download | forums-08161e09e21b0e002325550db8bf653a72c8d362.tar forums-08161e09e21b0e002325550db8bf653a72c8d362.tar.gz forums-08161e09e21b0e002325550db8bf653a72c8d362.tar.bz2 forums-08161e09e21b0e002325550db8bf653a72c8d362.tar.xz forums-08161e09e21b0e002325550db8bf653a72c8d362.zip |
I hate regexps ...
git-svn-id: file:///svn/phpbb/trunk@4491 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r-- | phpBB/includes/functions_user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 91445d8df2..f12bf21627 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -30,7 +30,7 @@ function request_var($var_name, $default) // not generally applicable elsewhere if ($type == 'string') { - $var = trim(preg_replace("#\s{2,}#s", ' ', strtr($var, array_flip(get_html_translation_table(HTML_ENTITIES))))); + $var = trim(stripslashes(preg_replace(array("#[ \xFF]{2,}#s", "#[\r\n]{2,}#s"), array(' ', "\n"), strtr($var, array_flip(get_html_translation_table(HTML_ENTITIES)))))); } return $var; |