Skip to content

Commit

Permalink
Added support for white-spaces in target
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekseyKonsmanov committed Feb 22, 2022
1 parent 7d1b78f commit 766c58c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion php-malware-finder/phpmalwarefinder
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 766c58c

Please sign in to comment.