strip html tags from sitename when using for html title

This commit is contained in:
Uwe Steinmann 2014-11-07 08:54:47 +01:00
parent f76cb1afc1
commit 7c4e5a15aa

View File

@ -76,7 +76,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
</style>
<?php
}
echo "<title>".(strlen($this->params['sitename'])>0 ? $this->params['sitename'] : "SeedDMS").(strlen($title)>0 ? ": " : "").htmlspecialchars($title)."</title>\n";
$sitename = trim(strip_tags($this->params['sitename']));
echo "<title>".(strlen($sitename)>0 ? $sitename : "SeedDMS").(strlen($title)>0 ? ": " : "").htmlspecialchars($title)."</title>\n";
echo "</head>\n";
echo "<body".(strlen($bodyClass)>0 ? " class=\"".$bodyClass."\"" : "").">\n";
if($this->params['session'] && $flashmsg = $this->params['session']->getSplashMsg()) {