fix sanitization in Whitelist

pull/64/merge
Christophe Vandeplas 2013-04-22 16:45:32 +02:00
parent 7fab436229
commit 31aefac521
2 changed files with 2 additions and 2 deletions

View File

@ -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());
} }
} }

View File

@ -12,7 +12,7 @@ foreach ($list as $item):?>
<td class="short"><?php echo h($item['Whitelist']['name']);?>&nbsp;</td> <td class="short"><?php echo h($item['Whitelist']['name']);?>&nbsp;</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;?>