Skip to content
Snippets Groups Projects
Commit e1d60f58 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

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
parent 5953e889
No related branches found
No related tags found
No related merge requests found
......@@ -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()?>
......
......@@ -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()?>
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment