mirror of https://github.com/MISP/MISP
fix: [layout:title] Make sure page title are correctly formatted
parent
f7232ed842
commit
286c84fab0
|
@ -28,7 +28,7 @@
|
|||
'data_path' => 'Correlation.count'
|
||||
]
|
||||
],
|
||||
'title' => empty($ajax) ? $title_for_layout : false,
|
||||
'title' => empty($ajax) ? h($title_for_layout) : false,
|
||||
'description' => empty($ajax) ? __('The values with the most correlation entries.') : false,
|
||||
'pull' => 'right',
|
||||
'actions' => [
|
||||
|
|
|
@ -63,7 +63,7 @@ echo $this->element('genericElements/IndexTable/index_table', [
|
|||
'element' => 'boolean'
|
||||
]
|
||||
],
|
||||
'title' => empty($ajax) ? $title_for_layout : false,
|
||||
'title' => empty($ajax) ? h($title_for_layout) : false,
|
||||
'description' => empty($ajax) ? __('The values with the most correlation entries.') : false,
|
||||
'pull' => 'right',
|
||||
'actions' => [
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
'class' => 'shortish'
|
||||
]
|
||||
],
|
||||
'title' => empty($ajax) ? $title_for_layout : false,
|
||||
'title' => empty($ajax) ? h($title_for_layout) : false,
|
||||
'description' => empty($ajax) ? __('The values with the most correlation entries.') : false,
|
||||
'pull' => 'right',
|
||||
'actions' => [
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo $title_for_layout;?></title>
|
||||
<title><?php echo h($title_for_layout);?></title>
|
||||
</head>
|
||||
<body>
|
||||
<?php echo $this->fetch('content');?>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="shortcut icon" href="<?= $baseurl ?>/img/favicon.png">
|
||||
<title><?= $title_for_layout, ' - ', h(Configure::read('MISP.title_text') ?: 'MISP') ?></title>
|
||||
<title><?= h($title_for_layout), ' - ', h(Configure::read('MISP.title_text') ?: 'MISP') ?></title>
|
||||
<?php
|
||||
$css = [
|
||||
['bootstrap', ['preload' => true]],
|
||||
|
|
|
@ -24,7 +24,7 @@ $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework
|
|||
<?php echo $this->Html->charset(); ?>
|
||||
<title>
|
||||
<?php echo $cakeDescription ?>:
|
||||
<?php echo $title_for_layout; ?>
|
||||
<?php echo h($title_for_layout); ?>
|
||||
</title>
|
||||
<?php
|
||||
echo $this->Html->meta('icon');
|
||||
|
|
Loading…
Reference in New Issue