aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/message_parser.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2005-04-30 14:24:13 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2005-04-30 14:24:13 +0000
commit0dec4135c54085caf9fd31f40ad4ff1fe94ba071 (patch)
tree8c4949c654d6d244f59d98a76b456fe334205581 /phpBB/includes/message_parser.php
parent7eee98f316bc587fe7e73eaf5aa0aff3e1809ffb (diff)
downloadforums-0dec4135c54085caf9fd31f40ad4ff1fe94ba071.tar
forums-0dec4135c54085caf9fd31f40ad4ff1fe94ba071.tar.gz
forums-0dec4135c54085caf9fd31f40ad4ff1fe94ba071.tar.bz2
forums-0dec4135c54085caf9fd31f40ad4ff1fe94ba071.tar.xz
forums-0dec4135c54085caf9fd31f40ad4ff1fe94ba071.zip
- test slightly modified topic tracking code
- some bugfixes git-svn-id: file:///svn/phpbb/trunk@5135 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/message_parser.php')
-rw-r--r--phpBB/includes/message_parser.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php
index 68e9215316..b257fb15b8 100644
--- a/phpBB/includes/message_parser.php
+++ b/phpBB/includes/message_parser.php
@@ -183,8 +183,9 @@ class bbcode_firstpass extends bbcode
'#<!\-\- l \-\-><a href="(.*?)">.*?</a><!\-\- l \-\->#',
'#<!\-\- s(.*?) \-\-><img src="\{SMILIES_PATH\}\/.*? \/><!\-\- s\1 \-\->#',
'#<!\-\- h \-\-><(.*?)><!\-\- h \-\->#',
+ '#&\#([0-9]+);#',
);
- $htm_replace = array('\1', '\1', '\1', '\1', '\1', '&lt;\1&gt;');
+ $htm_replace = array('\1', '\1', '\1', '\1', '\1', '&lt;\1&gt;', '&amp;#\1;');
$out = '';
@@ -385,6 +386,7 @@ class bbcode_firstpass extends bbcode
// Add newline at the end and in front of each quote block to prevent parsing errors (urls, smilies, etc.)
$in = preg_replace(array('#\[quote(=?.*?)\]([^\n])#is', '#([^\n])\[\/quote\]#is'), array("[quote\\1]\n\\2", "\\1\n[/quote]"), $in);
+ $in = preg_replace(array('#\[quote(=?.*?)\]([^\n])#is', '#([^\n])\[\/quote\]#is'), array("[quote\\1]\n\\2", "\\1\n[/quote]"), $in);
$in = substr(str_replace('\"', '"', $in), 1);
$close_tags = $error_ary = array();
@@ -543,7 +545,7 @@ class bbcode_firstpass extends bbcode
function validate_url($var1, $var2)
{
global $config;
-
+
$url = ($var1) ? stripslashes($var1) : stripslashes($var2);
$valid = false;
@@ -1293,6 +1295,7 @@ class fulltext_search
break;
case 'mysql4':
+ case 'mysqli':
case 'mssql':
case 'sqlite':
$sql = 'INSERT INTO ' . SEARCH_WORD_TABLE . ' (word_text) ' . implode(' UNION ALL ', preg_replace('#^(.*)$#', "SELECT '\$1'", $new_words));