Skip to content

Commit

Permalink
lock down File and FileUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Peabody committed Jan 10, 2011
1 parent 16f6142 commit b753dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.rb
Expand Up @@ -5,7 +5,7 @@
require File.expand_path(File.dirname(__FILE__) + '/string')

def input
(params[:input] || []).map{|i| ["`","exec","system","command","open"].any?{|x| i.include? x } ? ':oP' : i }
(params[:input] || []).map{|i| ["`","exec","system","command","open","File"].any?{|x| i.include? x } ? ':oP' : i }
end

get '/' do
Expand Down

0 comments on commit b753dd1

Please sign in to comment.