aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAgis Anastasopoulos <corestudiosinc@gmail.com>2012-11-15 14:15:13 +0200
committerAgis Anastasopoulos <corestudiosinc@gmail.com>2012-11-15 14:15:13 +0200
commit2d7ea2cc2ba780a113e34b3cb8524eb6b1bd71f2 (patch)
tree611afeb0821ad20d87a1996760bd3e545b16f838
parentf76b64c04c89c2f1409fe6b84a5dffa5f83d8b5f (diff)
downloadrails-2d7ea2cc2ba780a113e34b3cb8524eb6b1bd71f2.tar.gz
rails-2d7ea2cc2ba780a113e34b3cb8524eb6b1bd71f2.tar.bz2
rails-2d7ea2cc2ba780a113e34b3cb8524eb6b1bd71f2.zip
Remove unecessary word
-rw-r--r--guides/source/action_controller_overview.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/action_controller_overview.md b/guides/source/action_controller_overview.md
index b0e1a9aa34..7de95a33fd 100644
--- a/guides/source/action_controller_overview.md
+++ b/guides/source/action_controller_overview.md
@@ -713,7 +713,7 @@ This will read and stream the file 4kB at the time, avoiding loading the entire
If `:type` is not specified, it will be guessed from the file extension specified in `:filename`. If the content type is not registered for the extension, `application/octet-stream` will be used.
-WARNING: Be careful when using data coming from the client (params, cookies, etc.) to locate the file on disk, as this is a security risk that might allow someone to gain access to files they are not meant to see.
+WARNING: Be careful when using data coming from the client (params, cookies, etc.) to locate the file on disk, as this is a security risk that might allow someone to gain access to files they are not meant to.
TIP: It is not recommended that you stream static files through Rails if you can instead keep them in a public folder on your web server. It is much more efficient to let the user download the file directly using Apache or another web server, keeping the request from unnecessarily going through the whole Rails stack.