mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
lib/webrick/log.rb: sanitize any type of logs
It had failed to sanitize some type of exception messages. Reported and patched by Yusuke Endoh (mame) at https://hackerone.com/reports/223363 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7df1e45bb6
commit
6617c41292
3 changed files with 38 additions and 6 deletions
|
|
@ -23,10 +23,6 @@ module WEBrick
|
|||
##
|
||||
# Root of the HTTP status class hierarchy
|
||||
class Status < StandardError
|
||||
def initialize(*args) # :nodoc:
|
||||
args[0] = AccessLog.escape(args[0]) unless args.empty?
|
||||
super(*args)
|
||||
end
|
||||
class << self
|
||||
attr_reader :code, :reason_phrase # :nodoc:
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue