summaryrefslogtreecommitdiffstats
path: root/usr/local/www/head.inc
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/head.inc')
-rwxr-xr-xusr/local/www/head.inc9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/local/www/head.inc b/usr/local/www/head.inc
index 9535de3..0fb23e2 100755
--- a/usr/local/www/head.inc
+++ b/usr/local/www/head.inc
@@ -7,10 +7,11 @@ $g['theme'] = get_current_theme();
$pagetitle = gentitle( $pgtitle );
-if (isset($config['system']['webgui']['pagenamefirst']))
- $tabtitle = $pagetitle . " - " . $config['system']['hostname'] . "." . $config['system']['domain'];
-else
- $tabtitle = $config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pagetitle;
+if (isset($config['system']['webgui']['pagenamefirst'])) {
+ $tabtitle = $pagetitle . " - " . htmlspecialchars($config['system']['hostname'] . "." . $config['system']['domain']);
+} else {
+ $tabtitle = htmlspecialchars($config['system']['hostname'] . "." . $config['system']['domain']) . " - " . $pagetitle;
+}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
OpenPOWER on IntegriCloud