[ruby-cvs:68579] normal:r61398 (trunk): webrick/httpservlet/cgi_runner.rb: remove unnecessary open

normal at ruby-lang.org normal at ruby-lang.org
Fri Dec 22 10:07:45 JST 2017


normal	2017-12-22 10:07:45 +0900 (Fri, 22 Dec 2017)

  New Revision: 61398

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61398

  Log:
    webrick/httpservlet/cgi_runner.rb: remove unnecessary open
    
    IO#reopen already takes string path names as well as IO objects
    (but not "| command" strings)
    
    This makes further auditing for inadvertant code execution
    easier.  There's no actual bugfix or behavior change here,
    as no external data is passed to cgi_runner.rb.
    
    * lib/webrick/httpservlet/cgi_runner.rb: remove Kernel#open call
      [Misc #14216]

  Modified files:
    trunk/lib/webrick/httpservlet/cgi_runner.rb


More information about the ruby-cvs mailing list