From f43f0c30eb726633f960e9667f300d4e85405f9f Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Fri, 14 Oct 2005 07:40:47 +0000 Subject: * 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 --- ChangeLog | 6 ++++++ lib/webrick/config.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0db0ece9c..f34a2e248 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Oct 14 16:39:37 2005 GOTOU Yuuzou + + * 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. + Thu Oct 13 23:29:51 2005 Nobuyoshi Nakada * parse.y (HEAPCNT): bison allocates indivisible size. 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", ... ] } -- cgit