summaryrefslogtreecommitdiffstats
path: root/templates/bbcode.inc.php
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
commitc7f6fd8ff1bc6c46ffbb157446939f12e5d6e12f (patch)
tree58ad553494bb9a3ab821a08ef23e171ed4623189 /templates/bbcode.inc.php
parentbb6425e2a811445cde6c502d79c2904251393948 (diff)
downloadbbcode-c7f6fd8ff1bc6c46ffbb157446939f12e5d6e12f.tar
bbcode-c7f6fd8ff1bc6c46ffbb157446939f12e5d6e12f.zip
Ein paar unn?tige Aufrufe von strtr durch htmlspecialchars ersetzt.
Diffstat (limited to 'templates/bbcode.inc.php')
-rw-r--r--templates/bbcode.inc.php2
1 files changed, 1 insertions, 1 deletions
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('<' => '&lt;', '>' => '&gt;', '&' => '&amp;', '"' => '&quot;'));
+ $title = htmlspecialchars($data['title']);
else
$title = strtr($data['_page'], array(':' => ' - '));
$content = '<h2>' . $title . '</h2>' . $GLOBALS['bbcode']->Parse($data['code']);