method
check_filename
v1_9_2_180 -
Show latest stable
- Class:
WEBrick::HTTPServlet::FileHandler
check_filename(req, res, name)private
No documentation available.
# File lib/webrick/httpservlet/filehandler.rb, line 292
def check_filename(req, res, name)
if nondisclosure_name?(name) || windows_ambiguous_name?(name)
@logger.warn("the request refers nondisclosure name `#{name}'.")
raise HTTPStatus::NotFound, "`#{req.path}' not found."
end
end