diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-14 07:58:39 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-14 07:58:39 +0000 |
| commit | dfce0c8aaf21cfbdb2774c9de1ca5b87cae617d0 (patch) | |
| tree | 19014d413844387c10627e8dc5b957504aa818c8 /lib | |
| parent | 934d0b914f04eef1aac4ccb04b4089c3439e3e61 (diff) | |
| download | ruby-dfce0c8aaf21cfbdb2774c9de1ca5b87cae617d0.tar.gz ruby-dfce0c8aaf21cfbdb2774c9de1ca5b87cae617d0.tar.xz ruby-dfce0c8aaf21cfbdb2774c9de1ca5b87cae617d0.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/branches/ruby_1_8@9388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -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 36442e639..5897b977d 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", ... ] } |
