aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/security.md
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-12-07 23:43:46 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-12-07 23:43:46 -0500
commitf19e41fb16ea77422e0061fd47139d4d01a44f0c (patch)
treef8972f368545252b0864e261284bdd34c3235c8e /guides/source/security.md
parent69163ccae6a49c89e1a62ac94b98222651dd5aa8 (diff)
downloadrails-f19e41fb16ea77422e0061fd47139d4d01a44f0c.tar.gz
rails-f19e41fb16ea77422e0061fd47139d4d01a44f0c.tar.bz2
rails-f19e41fb16ea77422e0061fd47139d4d01a44f0c.zip
update guides to use _action callbacks [ci skip]
Diffstat (limited to 'guides/source/security.md')
-rw-r--r--guides/source/security.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/security.md b/guides/source/security.md
index 6c32a8ff5b..532a1ae5cc 100644
--- a/guides/source/security.md
+++ b/guides/source/security.md
@@ -688,7 +688,7 @@ NOTE: _When sanitizing, protecting or verifying something, whitelists over black
A blacklist can be a list of bad e-mail addresses, non-public actions or bad HTML tags. This is opposed to a whitelist which lists the good e-mail addresses, public actions, good HTML tags and so on. Although sometimes it is not possible to create a whitelist (in a SPAM filter, for example), _prefer to use whitelist approaches_:
-* Use before_filter only: [...] instead of except: [...]. This way you don't forget to turn it off for newly added actions.
+* Use before_action only: [...] instead of except: [...]. This way you don't forget to turn it off for newly added actions.
* Use attr_accessible instead of attr_protected. See the mass-assignment section for details
* Allow &lt;strong&gt; instead of removing &lt;script&gt; against Cross-Site Scripting (XSS). See below for details.
* Don't try to correct user input by blacklists: