From 8657d3fb5cbd25f78bc668ea9a0a8b17913dd490 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/default.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/default.inc.php b/templates/default.inc.php index 9669671..5ec0c75 100644 --- a/templates/default.inc.php +++ b/templates/default.inc.php @@ -4,7 +4,7 @@ class default_template { function Get($data) { if($data['title']) - $title = strtr($data['title'], array('<' => '<', '>' => '>', '&' => '&', '"' => '"')); + $title = htmlspecialchars($data['title']); else $title = strtr($data['_page'], array(':' => ' - ')); $content = '

' . $title . '

' . strtr($data['content'], array('<' => '<', '>' => '>', '&' => '&', -- cgit v1.2.3