mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-18 01:08:52 +00:00
This should work, it could be made more strict but am leaving it alone for now git-svn-id: file:///svn/phpbb/trunk@7505 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
17a6733755
commit
b10f79cacd
1 changed files with 1 additions and 1 deletions
|
@ -1195,7 +1195,7 @@ class parse_message extends bbcode_firstpass
|
|||
while ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
// (assertion)
|
||||
$match[] = '#(?<=^|[\n .])' . preg_quote($row['code'], '#') . '#';
|
||||
$match[] = '#(?<=^|[\n .])' . preg_quote($row['code'], '#') . '(?![^<>]*>)#';
|
||||
$replace[] = '<!-- s' . $row['code'] . ' --><img src="{SMILIES_PATH}/' . $row['smiley_url'] . '" alt="' . $row['code'] . '" title="' . $row['emotion'] . '" /><!-- s' . $row['code'] . ' -->';
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
|
Loading…
Add table
Reference in a new issue