#5588: security error when using multiple select
------------------------------------------------+---------------------------
Reporter: cakeman | Type: Bug
Status: new | Priority: High
Milestone: 1.2.x.x | Component: Components
Version: RC3 | Severity: Normal
Keywords: SecurityComponent multiple form | Php_version: n/a
Cake_version: |
------------------------------------------------+---------------------------
When multiple select is submitted, security error is called. [[BR]]
[[BR]]
'''app/controllers/posts_controller.php'''
{{{
<?php
class PostsController extends AppController {
var $name = 'Posts';
var $components = array('Security');
function add() {
$this->set('categories',
$this->Post->Category->find('list'));
}
}
?>
}}}
'''app/models/post.php'''
{{{
<?php
class Post extends AppModel {
var $name = 'Post';
var $hasAndBelongsToMany = array('Category');
}
?>
}}}
'''app/views/posts/add.ctp'''
{{{
<?php
echo $form->create('Post');
echo $form->input('Category');
echo $form->input('title');
echo $form->input('body');
echo $form->end('Submit');
?>
}}}
--
Ticket URL: <https://trac.cakephp.org/ticket/5588>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---