From c66b0cf1c545296f24a8f8346698ef349329ced2 Mon Sep 17 00:00:00 2001 From: chrisaga Date: Tue, 25 Apr 2006 20:36:56 +0000 Subject: bug 351 fixed : htmlentities() on comments git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1271 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_html.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 21784654b..00acd0018 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -479,6 +479,7 @@ function get_html_menu_category($categories) */ function parse_comment_content($content) { + htmlentities($content,ENT_QUOTES); $pattern = '/(https?:\/\/\S*)/'; $replacement = '$1'; $content = preg_replace($pattern, $replacement, $content); @@ -500,7 +501,7 @@ function parse_comment_content($content) $replacement = '$1$2'; $content = preg_replace($pattern, $replacement, $content); - $content = '
'.htmlentities($content,ENT_QUOTES).'
'; + $content = '
'.$content.'
'; return $content; } -- cgit v1.2.3