function beforeSave($options = array())
{
+ // $fieldsの設定でSanitize
+ foreach($this->data[$this->name] as $field => $value) {
+ $this->data[$this->name][$field] = $this->escapeByFields($field, $value);
+ }
// Sanitize(不正コード、SQL Injection)
$this->data = Sanitize::clean(
$this->data,
var $name = 'User';
var $belongsTo = array('Group');
var $actsAs = array(
+ 'Cakeplus.ValidationErrorI18n',
+ 'Cakeplus.AddValidationRule',
+ 'SanitizePlus',
'Acl' => 'requester', // ARO自動登録用
'Containable',
);
}
function beforeSave($options = array())
{
-
- // $fieldsの設定でSanitize
- foreach($this->data['User'] as $field => $value) {
- $this->data['User'][$field] = $this->escapeByFields($field, $value);
- }
-
return parent::beforeSave($options);
}