From 1393e9fc6de4f0b3b326fb7c5c1ed8661548e734 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 9 Jun 2003 15:45:10 +0000 Subject: [PATCH] Another attempt at handling & entities correctly git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4099 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions_post.php b/phpBB/includes/functions_post.php index 3be9937015..9328e8fa45 100644 --- a/phpBB/includes/functions_post.php +++ b/phpBB/includes/functions_post.php @@ -25,7 +25,7 @@ if (!defined('IN_PHPBB')) die('Hacking attempt'); } -$html_entities_match = array('#&#', '#<#', '#>#'); +$html_entities_match = array('#&(?!(\#[0-9]+;))#', '#<#', '#>#'); $html_entities_replace = array('&', '<', '>'); $unhtml_specialchars_match = array('#>#', '#<#', '#"#', '#&#');