aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/security.md
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2015-08-24 04:30:30 +0000
committerVijay Dev <vijaydev.cse@gmail.com>2015-08-24 04:32:09 +0000
commit5bcb454ba4f980419ea18bb4bdf3b01072e1e864 (patch)
tree0232e5ebd2c8d38c7c7d3213f42d5cf6900e245b /guides/source/security.md
parent549c68118441a2538907655bfd3f7dd9cfe35072 (diff)
downloadrails-5bcb454ba4f980419ea18bb4bdf3b01072e1e864.tar.gz
rails-5bcb454ba4f980419ea18bb4bdf3b01072e1e864.tar.bz2
rails-5bcb454ba4f980419ea18bb4bdf3b01072e1e864.zip
add commas removed earlier [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 095adf47b1..fa168643ed 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 &amp;, &quot;, &lt; and &gt; by their uninterpreted representations in HTML (`&amp;`, `&quot;`, `&lt;` and `&gt;`). 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 &amp;, &quot;, &lt;, and &gt; by their uninterpreted representations in HTML (`&amp;`, `&quot;`, `&lt;`, and `&gt;`). 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