From a921f2118de57c2f8766d5fcd522b20ca3f29f4a Mon Sep 17 00:00:00 2001 From: Mike McCabe Date: Tue, 22 Oct 2013 17:08:27 -0400 Subject: [PATCH] minor fix --- spec/vulnerabilities/command_injection_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/vulnerabilities/command_injection_spec.rb b/spec/vulnerabilities/command_injection_spec.rb index 8d69415..23e0879 100644 --- a/spec/vulnerabilities/command_injection_spec.rb +++ b/spec/vulnerabilities/command_injection_spec.rb @@ -15,7 +15,7 @@ feature 'command injection' do visit "/users/#{@normal_user.user_id}/benefit_forms" Dir.mktmpdir do |dir| - hackety_file = File.join(dir, ' >> /dev/null &2>1; cd public && cd data && rm -f * ;') + hackety_file = File.join(dir, ' >> /dev/null 2&>1; cd public && cd data && rm -f * ;') File.open(hackety_file, 'w') { |f| f.print 'mwahaha' } within('.new_benefits') do attach_file 'benefits_upload', hackety_file