Skip to content

Commit

Permalink
Fixes #791 - Rogue character causing the scan of non-wordpress site t…
Browse files Browse the repository at this point in the history
…o crash
  • Loading branch information
erwanlr committed Apr 1, 2015
1 parent e42bf7f commit bcef4b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wpscan/wp_target.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def wordpress?
if wp_content_dir
dir = wp_content_dir
else
dir = 'wp-content'
dir = 'wp-content'
end

if response.body =~ /["'][^"']*\/#{Regexp.escape(dir)}\/[^"']*["']/i
Expand Down

0 comments on commit bcef4b2

Please sign in to comment.