Sha256: 16951bbdd299488f4b352b13d6d63f005e799edc169781d3535b48951f32f2ef

Contents?: true

Size: 752 Bytes

Versions: 8

Compression:

Stored size: 752 Bytes

Contents

require 'sinatra'
require 'sinatra/contrib'
set :logging, false

get '/true' do
    out = case params[:rdiff]
        when 'blahbad'
            'Could not find any results, bugger off!'
        when 'blahgood', 'blah'
            '1 item found: Blah blah blah...'
        else
            'No idea what you want mate...'
    end

    <<-EOHTML
    <a href='?rdiff=blah'>Inject here</a>
    #{out}
EOHTML

end

get '/false' do
    out = case params[:rdiff]
        when 'blahgood', 'blahbad'
            'Could not find any results, bugger off!'
        when 'blah'
            '1 item found: Blah blah blah...'
        else
            'No idea what you want mate...'
    end

<<-EOHTML
    <a href='?rdiff=blah'>Inject here</a>
    #{out}
EOHTML
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
arachni-0.4.3.2 spec/support/servers/arachni/element/capabilities/auditable/rdiff.rb
arachni-0.4.3.1 spec/support/servers/arachni/element/capabilities/auditable/rdiff.rb
arachni-0.4.3 spec/support/servers/arachni/element/capabilities/auditable/rdiff.rb
arachni-0.4.2 spec/servers/arachni/element/capabilities/auditable/rdiff.rb
arachni-0.4.1.3 spec/servers/arachni/element/capabilities/auditable/rdiff.rb
arachni-0.4.1.2 spec/servers/arachni/element/capabilities/auditable/rdiff.rb
arachni-0.4.1.1 spec/servers/arachni/element/capabilities/auditable/rdiff.rb
arachni-0.4.1 spec/servers/arachni/element/capabilities/auditable/rdiff.rb