Sha256: f23815ce9806c7d5e2dbd9852153b6efc645569e7313319f6671266b43595621
Contents?: true
Size: 504 Bytes
Versions: 53
Compression:
Stored size: 504 Bytes
Contents
require 'spec_helper' describe "a configured imagemagick app" do before(:each) do @app = test_app.configure_with(:imagemagick) end describe "shell injection" do it "should not allow it!" do begin suppressing_stderr do @app.generate(:plain, 10, 10, 'white').convert("-resize 5x5 ; touch tmp/stuff").apply end rescue Dragonfly::FunctionManager::UnableToHandle end File.exist?('tmp/stuff').should be_false end end end
Version data entries
53 entries across 53 versions & 2 rubygems