summaryrefslogtreecommitdiffstats
path: root/lib/webrick/httpservlet/filehandler.rb
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-16 09:14:27 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-16 09:14:27 +0000
commitc40f3072c4e9e7e1c2727e7711401d6f3c0ffbc9 (patch)
tree18d58459f839b19355430fbd2f34f6b5ba1e9e07 /lib/webrick/httpservlet/filehandler.rb
parentf2ebd073764cd6a8dad26416f84d48b6005504fc (diff)
downloadruby-c40f3072c4e9e7e1c2727e7711401d6f3c0ffbc9.tar.gz
ruby-c40f3072c4e9e7e1c2727e7711401d6f3c0ffbc9.tar.xz
ruby-c40f3072c4e9e7e1c2727e7711401d6f3c0ffbc9.zip
* lib/webrick/cgi.rb (WEBrick::CGI#start): should set REMOTE_USER
to request.user attribute. * lib/webrick/httpservlet/filehandler.rb (WEBrick::HTTPServlet::FileHandler#initialize): should expand the pathname of document root directory. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/httpservlet/filehandler.rb')
-rw-r--r--lib/webrick/httpservlet/filehandler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/httpservlet/filehandler.rb b/lib/webrick/httpservlet/filehandler.rb
index 8525d7bb1..ab118ba5c 100644
--- a/lib/webrick/httpservlet/filehandler.rb
+++ b/lib/webrick/httpservlet/filehandler.rb
@@ -139,7 +139,7 @@ module WEBrick
def initialize(server, root, options={}, default=Config::FileHandler)
@config = server.config
@logger = @config[:Logger]
- @root = root
+ @root = File.expand_path(root)
if options == true || options == false
options = { :FancyIndexing => options }
end