public
Rubygem
Description: A very fast & simple Ruby web server
Homepage: http://code.macournoyer.com/thin/
Clone URL: git://github.com/macournoyer/thin.git
Click here to lend your support to: thin and make a donation at www.pledgie.com !
rails rack adapter uses File.readable_real? so it recognizes ACL permissions
ricardochimal (author)
Fri Aug 01 20:46:34 -0700 2008
macournoyer (committer)
Sat Aug 02 07:55:11 -0700 2008
commit  cc8f4cff129f03d09c75c55ff020f70f69036beb
tree    f187ace4b922b57609c0128b76a4d461b3b0a68e
parent  8c45ab4a2fef3d090978935b0af0ae3a2abafbe5
...
37
38
39
40
 
41
42
43
...
37
38
39
 
40
41
42
43
0
@@ -37,7 +37,7 @@ module Rack
0
       # TODO refactor this in File#can_serve?(path) ??
0
       def file_exist?(path)
0
         full_path = ::File.join(@file_server.root, Utils.unescape(path))
0
-        ::File.file?(full_path) && ::File.readable?(full_path)
0
+        ::File.file?(full_path) && ::File.readable_real?(full_path)
0
       end
0
       
0
       def serve_file(env)

Comments