diff options
author | chrisaga <chrisaga@piwigo.org> | 2006-04-22 15:27:13 +0000 |
---|---|---|
committer | chrisaga <chrisaga@piwigo.org> | 2006-04-22 15:27:13 +0000 |
commit | 854df586db9c1936cf3914073cce357e4df43159 (patch) | |
tree | 276a37c94cc13ebbd2b7f31b6cdd949314c1777f /include/functions_html.inc.php | |
parent | e49879d4b87693d2c3dec1147bdfd9fcb480ab1b (diff) |
- merge trunk r1258:1259 into branch 1.6 (htmlentities())
git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1260 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_html.inc.php')
-rw-r--r-- | include/functions_html.inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 3afed2322..21784654b 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -450,7 +450,7 @@ function get_html_menu_category($categories) { $menu.= ' rel="up"'; } - $menu.= '>'.$category['name'].'</a>'; + $menu.= '>'.htmlentities($category['name'],ENT_QUOTES).'</a>'; if ($category['nb_images'] > 0) { @@ -500,7 +500,7 @@ function parse_comment_content($content) $replacement = '<span style="font-style:italic;">$1$2</span>'; $content = preg_replace($pattern, $replacement, $content); - $content = '<div>'.$content.'</div>'; + $content = '<div>'.htmlentities($content,ENT_QUOTES).'</div>'; return $content; } @@ -550,7 +550,7 @@ function get_html_tag_selection( $output.= ' />' - .' '.$tag['name'] + .' '. htmlentities($tag['name'],ENT_QUOTES) .'</label>' .'</li>' ."\n" |