diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-14 07:40:47 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-14 07:40:47 +0000 |
| commit | f43f0c30eb726633f960e9667f300d4e85405f9f (patch) | |
| tree | b4060e9caf593cd43ba1ead6c57a8137c3e9e865 /lib/webrick | |
| parent | 5580174b1afefc8d4ee2ba3068b9ebfd2b21d60d (diff) | |
| download | ruby-f43f0c30eb726633f960e9667f300d4e85405f9f.tar.gz ruby-f43f0c30eb726633f960e9667f300d4e85405f9f.tar.xz ruby-f43f0c30eb726633f960e9667f300d4e85405f9f.zip | |
* lib/webrick/config.rb (Config::FileHandler): :UserDir should be nil.
It is harmful to permit the access to ~/public_html by default.
suggested by Hiroyuki Iwatsuki.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick')
| -rw-r--r-- | lib/webrick/config.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/config.rb b/lib/webrick/config.rb index f787eea61..19d0c7ab1 100644 --- a/lib/webrick/config.rb +++ b/lib/webrick/config.rb @@ -71,7 +71,7 @@ module WEBrick :HandlerCallback => nil, :DirectoryCallback => nil, :FileCallback => nil, - :UserDir => "public_html", + :UserDir => nil, # e.g. "public_html" :AcceptableLanguages => [] # ["en", "ja", ... ] } |
