summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-04-18 21:57:05 +0200
committerneoraider <devnull@localhost>2006-04-18 21:57:05 +0200
commit8657d3fb5cbd25f78bc668ea9a0a8b17913dd490 (patch)
tree4d4f15af80bf0bad4027e288f867767daea108cc /templates
parent7b622dca2d4a24221202d85c15ba68d0974b432c (diff)
downloadneon-8657d3fb5cbd25f78bc668ea9a0a8b17913dd490.tar
neon-8657d3fb5cbd25f78bc668ea9a0a8b17913dd490.zip
Ein paar unn?tige Aufrufe von strtr durch htmlspecialchars ersetzt.
Diffstat (limited to 'templates')
-rw-r--r--templates/default.inc.php2
1 files changed, 1 insertions, 1 deletions
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('<' => '&lt;', '>' => '&gt;', '&' => '&amp;', '"' => '&quot;'));
+ $title = htmlspecialchars($data['title']);
else
$title = strtr($data['_page'], array(':' => ' - '));
$content = '<h2>' . $title . '</h2>' . strtr($data['content'], array('<' => '&lt;', '>' => '&gt;', '&' => '&amp;',