Permalink
Browse files

Fix two errors.

Missing article added.
Consistent (at least in this file) use of abbreviation.
  • Loading branch information...
1 parent 48791dd commit 71947e30cc102e8512d76932dee015802a314d32 Andreas Scherer committed Feb 17, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/guides/source/action_controller_overview.textile
@@ -589,7 +589,7 @@ With this in place, you can create namespaced controllers that inherit from +Adm
h4. HTTP digest authentication
-HTTP digest authentication is superior to the basic authentication as it does not require the client to send unencrypted password over the network (though HTTP basic authentication is safe over HTTPS). Using digest authentication with Rails is quite easy and only requires using one method, +authenticate_or_request_with_http_digest+.
+HTTP digest authentication is superior to the basic authentication as it does not require the client to send an unencrypted password over the network (though HTTP basic authentication is safe over HTTPS). Using digest authentication with Rails is quite easy and only requires using one method, +authenticate_or_request_with_http_digest+.
<ruby>
class AdminController < ApplicationController
@@ -656,7 +656,7 @@ class ClientsController < ApplicationController
end
</ruby>
-This will read and stream the file 4Kb at the time, avoiding loading the entire file into memory at once. You can turn off streaming with the +:stream+ option or adjust the block size with the +:buffer_size+ option.
+This will read and stream the file 4kB at the time, avoiding loading the entire file into memory at once. You can turn off streaming with the +:stream+ option or adjust the block size with the +:buffer_size+ option.
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.

0 comments on commit 71947e3

Please sign in to comment.