diff options
author | Abe Voelker <abe@abevoelker.com> | 2012-03-09 15:15:01 -0600 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-03-26 21:39:29 +0530 |
commit | ed7567ca7aa4ea3f29236229f4c1d366550a0c5c (patch) | |
tree | d2b6c89713095ab4b83bb18791b59be3bc0c2a63 /railties/guides/source/security.textile | |
parent | eb0d8ee4fd3e369e88fd77492d01b499d9550162 (diff) | |
download | rails-ed7567ca7aa4ea3f29236229f4c1d366550a0c5c.tar.gz rails-ed7567ca7aa4ea3f29236229f4c1d366550a0c5c.tar.bz2 rails-ed7567ca7aa4ea3f29236229f4c1d366550a0c5c.zip |
Fix 'Security#Mass Assignment' URL typo
Diffstat (limited to 'railties/guides/source/security.textile')
-rw-r--r-- | railties/guides/source/security.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/security.textile b/railties/guides/source/security.textile index c2ef7bf9b5..3f2d307792 100644 --- a/railties/guides/source/security.textile +++ b/railties/guides/source/security.textile @@ -374,7 +374,7 @@ end Mass-assignment saves you much work, because you don't have to set each value individually. Simply pass a hash to the +new+ method, or +assign_attributes=+ a hash value, to set the model's attributes to the values in the hash. The problem is that it is often used in conjunction with the parameters (params) hash available in the controller, which may be manipulated by an attacker. He may do so by changing the URL like this: <pre> -"name":http://www.example.com/user/signup?user[name]=ow3ned&user[admin]=1 +http://www.example.com/user/signup?user[name]=ow3ned&user[admin]=1 </pre> This will set the following parameters in the controller: |