aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/convertors/functions_phpbb20.php
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2007-07-18 12:51:57 +0000
committerHenry Sudhof <kellanved@phpbb.com>2007-07-18 12:51:57 +0000
commit6aaf78de29947dbaf9df8a89698495f3f478533f (patch)
tree171c0e6a0e29fab2342e3d35ea1e5a597874cf81 /phpBB/install/convertors/functions_phpbb20.php
parent6276165b6d631c326b07e3ba9834717bed35d7dd (diff)
downloadforums-6aaf78de29947dbaf9df8a89698495f3f478533f.tar
forums-6aaf78de29947dbaf9df8a89698495f3f478533f.tar.gz
forums-6aaf78de29947dbaf9df8a89698495f3f478533f.tar.bz2
forums-6aaf78de29947dbaf9df8a89698495f3f478533f.tar.xz
forums-6aaf78de29947dbaf9df8a89698495f3f478533f.zip
Some more quote workarounds.
git-svn-id: file:///svn/phpbb/trunk@7903 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/convertors/functions_phpbb20.php')
-rw-r--r--phpBB/install/convertors/functions_phpbb20.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/install/convertors/functions_phpbb20.php b/phpBB/install/convertors/functions_phpbb20.php
index db1fe7ea8d..7daefabdce 100644
--- a/phpBB/install/convertors/functions_phpbb20.php
+++ b/phpBB/install/convertors/functions_phpbb20.php
@@ -1204,6 +1204,10 @@ function phpbb_prepare_message($message)
{
$message = preg_replace('/\[quote="(.*?)"\]/s', '[quote=&quot;\1&quot;]', $message);
$message = preg_replace('/\[quote=\\\"(.*?)\\\"\]/s', '[quote=&quot;\1&quot;]', $message);
+
+ // let's hope that this solves more problems than it causes. Deal with escaped quotes.
+ $message = str_replace('\"', '&quot;', $message);
+ $message = str_replace('\&quot;', '&quot;', $message);
}
// Already the new user id ;)