diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-08-26 20:09:43 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-08-26 20:09:43 +0200 |
commit | e1d60f58d6db29397d9f05e5c4704a97e46fa2d5 (patch) | |
tree | ff74138367a38bfad64878bacb3d1fb214ff05f7 /lib | |
parent | 5953e88907368380d326c187b3d1071f575c7daf (diff) | |
download | rpg-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')
-rw-r--r-- | lib/tpl/default/detail.php | 2 | ||||
-rw-r--r-- | lib/tpl/default/main.php | 5 | ||||
-rw-r--r-- | lib/tpl/default/mediamanager.php | 5 |
3 files changed, 9 insertions, 3 deletions
diff --git a/lib/tpl/default/detail.php b/lib/tpl/default/detail.php index 98e6ab713..2330e2005 100644 --- a/lib/tpl/default/detail.php +++ b/lib/tpl/default/detail.php @@ -18,7 +18,7 @@ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?> - [<?php echo hsc($conf['title'])?>] + [<?php echo strip_tags($conf['title'])?>] </title> <?php tpl_metaheaders()?> 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()?> diff --git a/lib/tpl/default/mediamanager.php b/lib/tpl/default/mediamanager.php index 7cf821df8..1da6dfd00 100644 --- a/lib/tpl/default/mediamanager.php +++ b/lib/tpl/default/mediamanager.php @@ -16,7 +16,10 @@ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="ltr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <title><?php echo hsc($lang['mediaselect'])?> [<?php echo hsc($conf['title'])?>]</title> + <title> + <?php echo hsc($lang['mediaselect'])?> + [<?php echo strip_tags($conf['title'])?>] + </title> <?php tpl_metaheaders()?> <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" /> </head> |