Skip to content

Commit

Permalink
Merge pull request #8 from DobroAlex/white_spaces_support
Browse files Browse the repository at this point in the history
Added support for white-spaces in target
  • Loading branch information
wargio committed Feb 22, 2022
2 parents 7d1b78f + 766c58c commit b8698eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion php-malware-finder/phpmalwarefinder
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ output=$(mktemp)
# delete trailing slash for directories to prevent double slash (issue #40)
target=$(echo "$@" | sed s'#/$##')
# Execute rules
$YARA $OPTS $target |tee $output
# Using $-interpolation and quotes to support a target with whitespaces
$YARA $OPTS "$target" |tee $output

needle_in_haystack "$output"
rm "$output"

0 comments on commit b8698eb

Please sign in to comment.