Skip to content

Commit

Permalink
exec plugin: Fixed error on empty option
Browse files Browse the repository at this point in the history
  • Loading branch information
Zapotek committed Mar 23, 2022
1 parent 4a263cc commit 35f9516
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ChangeLog

## _Under development_

- Plugins
- `exec` -- Fixed error on empty option.

## 1.6.1 _(March 20, 2022)_

- `Browser#eelenium` -- Disable sandbox.
Expand Down
4 changes: 2 additions & 2 deletions components/plugins/exec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def clean_up
end

def exec( stage )
return if !options[stage]
return if options[stage].to_s.empty?

if defined?( Arachni::RPC::Server::Framework ) &&
framework.is_a?( Arachni::RPC::Server::Framework )
Expand Down Expand Up @@ -135,7 +135,7 @@ def self.info
_Will not work over RPC._
},
author: 'Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>',
version: '0.1',
version: '0.1.1',
options: [
Options::String.new( :pre,
description: 'Executable to be called prior to the scan.'
Expand Down

0 comments on commit 35f9516

Please sign in to comment.