summaryrefslogtreecommitdiff
path: root/lib/tpl/default/main.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-08-26 20:09:43 +0200
committerAndreas Gohr <andi@splitbrain.org>2006-08-26 20:09:43 +0200
commite1d60f58d6db29397d9f05e5c4704a97e46fa2d5 (patch)
treeff74138367a38bfad64878bacb3d1fb214ff05f7 /lib/tpl/default/main.php
parent5953e88907368380d326c187b3d1071f575c7daf (diff)
downloadrpg-e1d60f58d6db29397d9f05e5c4704a97e46fa2d5.tar.gz
rpg-e1d60f58d6db29397d9f05e5c4704a97e46fa2d5.tar.bz2
strip tags from title #883
This patch no longer uses htmlspecialchars on $conf['title'] when used in the page title - instead strip_tags is applied. This streamlines the use of $conf['title'] darcs-hash:20060826180943-7ad00-c8cc155c1e92fad05b85f77841834f782cbf6281.gz
Diffstat (limited to 'lib/tpl/default/main.php')
-rw-r--r--lib/tpl/default/main.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/tpl/default/main.php b/lib/tpl/default/main.php
index a63831ae4..c7364f6a6 100644
--- a/lib/tpl/default/main.php
+++ b/lib/tpl/default/main.php
@@ -18,7 +18,10 @@
lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title><?php tpl_pagetitle()?> [<?php echo hsc($conf['title'])?>]</title>
+ <title>
+ <?php tpl_pagetitle()?>
+ [<?php echo strip_tags($conf['title'])?>]
+ </title>
<?php tpl_metaheaders()?>