From c7f6fd8ff1bc6c46ffbb157446939f12e5d6e12f Mon Sep 17 00:00:00 2001 From: neoraider Date: Tue, 18 Apr 2006 19:57:05 +0000 Subject: Ein paar unn?tige Aufrufe von strtr durch htmlspecialchars ersetzt. --- templates/bbcode.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/bbcode.inc.php b/templates/bbcode.inc.php index e04d575..8a41d46 100644 --- a/templates/bbcode.inc.php +++ b/templates/bbcode.inc.php @@ -7,7 +7,7 @@ class bbcode_template { function Get($data) { if($data['title']) - $title = strtr($data['title'], array('<' => '<', '>' => '>', '&' => '&', '"' => '"')); + $title = htmlspecialchars($data['title']); else $title = strtr($data['_page'], array(':' => ' - ')); $content = '

' . $title . '

' . $GLOBALS['bbcode']->Parse($data['code']); -- cgit v1.2.3