mirror of https://github.com/MISP/MISP
fix sanitization in Whitelist
parent
7fab436229
commit
31aefac521
|
@ -92,6 +92,6 @@ class WhitelistsController extends AppController {
|
||||||
*/
|
*/
|
||||||
public function index() {
|
public function index() {
|
||||||
$this->recursive = 0;
|
$this->recursive = 0;
|
||||||
$this->set('list', Sanitize::clean($this->paginate()));
|
$this->set('list', $this->paginate());
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -12,7 +12,7 @@ foreach ($list as $item):?>
|
||||||
<td class="short"><?php echo h($item['Whitelist']['name']);?> </td>
|
<td class="short"><?php echo h($item['Whitelist']['name']);?> </td>
|
||||||
<td class="actions">
|
<td class="actions">
|
||||||
<?php echo $this->Html->link(__('Edit'), array('admin' => true, 'action' => 'edit', $item['Whitelist']['id']));?>
|
<?php echo $this->Html->link(__('Edit'), array('admin' => true, 'action' => 'edit', $item['Whitelist']['id']));?>
|
||||||
<?php echo $this->Form->postLink(__('Delete'), array('admin' => true, 'action' => 'delete', $item['Whitelist']['id']), null, __('Are you sure you want to delete "%s"?', $item['Whitelist']['name']));?>
|
<?php echo $this->Form->postLink(__('Delete'), array('admin' => true, 'action' => 'delete', $item['Whitelist']['id']), null, __('Are you sure you want to delete "%s"?', h($item['Whitelist']['name'])));?>
|
||||||
</td>
|
</td>
|
||||||
</tr><?php
|
</tr><?php
|
||||||
endforeach;?>
|
endforeach;?>
|
||||||
|
|
Loading…
Reference in New Issue