diff options
author | yui-knk <spiketeika@gmail.com> | 2015-07-25 10:21:32 +0900 |
---|---|---|
committer | yui-knk <spiketeika@gmail.com> | 2015-07-25 10:21:32 +0900 |
commit | 33a72824b8e355b5f2666816fb62573b5bebc1ae (patch) | |
tree | b463f01e5f76e6d8f31ac4d97a0a33e42cb11878 /guides/source | |
parent | f9015ada7e414a1a296499d5c92463016ba200ef (diff) | |
download | rails-33a72824b8e355b5f2666816fb62573b5bebc1ae.tar.gz rails-33a72824b8e355b5f2666816fb62573b5bebc1ae.tar.bz2 rails-33a72824b8e355b5f2666816fb62573b5bebc1ae.zip |
[ci skip] Fix to `a, b and c` format
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/security.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/security.md b/guides/source/security.md index adbab2a154..095adf47b1 100644 --- a/guides/source/security.md +++ b/guides/source/security.md @@ -754,7 +754,7 @@ s = sanitize(user_input, tags: tags, attributes: %w(href title)) This allows only the given tags and does a good job, even against all kinds of tricks and malformed tags. -As a second step, _it is good practice to escape all output of the application_, especially when re-displaying user input, which hasn't been input-filtered (as in the search form example earlier on). _Use `escapeHTML()` (or its alias `h()`) method_ to replace the HTML input characters &, ", <, > by their uninterpreted representations in HTML (`&`, `"`, `<` and `>`). However, it can easily happen that the programmer forgets to use it, so _it is recommended to use the SafeErb gem. SafeErb reminds you to escape strings from external sources. +As a second step, _it is good practice to escape all output of the application_, especially when re-displaying user input, which hasn't been input-filtered (as in the search form example earlier on). _Use `escapeHTML()` (or its alias `h()`) method_ to replace the HTML input characters &, ", < and > by their uninterpreted representations in HTML (`&`, `"`, `<` and `>`). However, it can easily happen that the programmer forgets to use it, so _it is recommended to use the SafeErb gem. SafeErb reminds you to escape strings from external sources. ##### Obfuscation and Encoding Injection |