diff options
| -rwxr-xr-x | php-malware-finder/phpmalwarefinder | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/php-malware-finder/phpmalwarefinder b/php-malware-finder/phpmalwarefinder index ab1d6fb..a6de360 100755 --- a/php-malware-finder/phpmalwarefinder +++ b/php-malware-finder/phpmalwarefinder | |||
| @@ -89,7 +89,8 @@ output=$(mktemp) | |||
| 89 | # delete trailing slash for directories to prevent double slash (issue #40) | 89 | # delete trailing slash for directories to prevent double slash (issue #40) |
| 90 | target=$(echo "$@" | sed s'#/$##') | 90 | target=$(echo "$@" | sed s'#/$##') |
| 91 | # Execute rules | 91 | # Execute rules |
| 92 | $YARA $OPTS $target |tee $output | 92 | # Using $-interpolation and quotes to support a target with whitespaces |
| 93 | $YARA $OPTS "$target" |tee $output | ||
| 93 | 94 | ||
| 94 | needle_in_haystack "$output" | 95 | needle_in_haystack "$output" |
| 95 | rm "$output" | 96 | rm "$output" |
