Skip to content

Commit 504e539

Browse files
committed
Active Support Core Extensions guide: reworded "on one hand" and similar to "for one thing"
1 parent 8bf97d1 commit 504e539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/active_support_core_extensions.textile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ h4. Output Safety
11311131

11321132
h5. Motivation
11331133

1134-
Inserting data into HTML templates needs extra care. For example you can't just interpolate [email protected]+ verbatim into an HTML page. On one hand if the review title is "Flanagan & Matz rules!" the output won't be well-formed because an ampersand has to be escaped as "&". On the other hand, depending on the application that may be a big security hole because users can inject malicious HTML setting a hand-crafted review title. Check out the "section about cross-site scripting in the Security guide":security.html#cross-site-scripting-xss for further information about the risks.
1134+
Inserting data into HTML templates needs extra care. For example, you can't just interpolate [email protected]+ verbatim into an HTML page. For one thing, if the review title is "Flanagan & Matz rules!" the output won't be well-formed because an ampersand has to be escaped as "&". What's more, depending on the application, that may be a big security hole because users can inject malicious HTML setting a hand-crafted review title. Check out the "section about cross-site scripting in the Security guide":security.html#cross-site-scripting-xss for further information about the risks.
11351135

11361136
h5. Safe Strings
11371137

0 commit comments

Comments
 (0)