diff options
author | neoraider <devnull@localhost> | 2006-04-18 21:57:05 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-04-18 21:57:05 +0200 |
commit | c7f6fd8ff1bc6c46ffbb157446939f12e5d6e12f (patch) | |
tree | 58ad553494bb9a3ab821a08ef23e171ed4623189 /templates | |
parent | bb6425e2a811445cde6c502d79c2904251393948 (diff) | |
download | bbcode-c7f6fd8ff1bc6c46ffbb157446939f12e5d6e12f.tar bbcode-c7f6fd8ff1bc6c46ffbb157446939f12e5d6e12f.zip |
Ein paar unn?tige Aufrufe von strtr durch htmlspecialchars ersetzt.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/bbcode.inc.php | 2 |
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('<' => '<', '>' => '>', '&' => '&', '"' => '"')); + $title = htmlspecialchars($data['title']); else $title = strtr($data['_page'], array(':' => ' - ')); $content = '<h2>' . $title . '</h2>' . $GLOBALS['bbcode']->Parse($data['code']); |