aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorAbe Voelker <abe@abevoelker.com>2012-03-09 15:15:01 -0600
committerVijay Dev <vijaydev.cse@gmail.com>2012-03-26 21:39:29 +0530
commited7567ca7aa4ea3f29236229f4c1d366550a0c5c (patch)
treed2b6c89713095ab4b83bb18791b59be3bc0c2a63 /railties
parenteb0d8ee4fd3e369e88fd77492d01b499d9550162 (diff)
downloadrails-ed7567ca7aa4ea3f29236229f4c1d366550a0c5c.tar.gz
rails-ed7567ca7aa4ea3f29236229f4c1d366550a0c5c.tar.bz2
rails-ed7567ca7aa4ea3f29236229f4c1d366550a0c5c.zip
Fix 'Security#Mass Assignment' URL typo
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/security.textile2
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: