mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
strip html tags from sitename when using for html title
This commit is contained in:
parent
f76cb1afc1
commit
7c4e5a15aa
|
@ -76,7 +76,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
</style>
|
</style>
|
||||||
<?php
|
<?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 "</head>\n";
|
||||||
echo "<body".(strlen($bodyClass)>0 ? " class=\"".$bodyClass."\"" : "").">\n";
|
echo "<body".(strlen($bodyClass)>0 ? " class=\"".$bodyClass."\"" : "").">\n";
|
||||||
if($this->params['session'] && $flashmsg = $this->params['session']->getSplashMsg()) {
|
if($this->params['session'] && $flashmsg = $this->params['session']->getSplashMsg()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user