Fixes #791 - Rogue character causing the scan of non-wordpress site to crash
This commit is contained in:
@@ -47,7 +47,7 @@ class WpTarget < WebSite
|
||||
if wp_content_dir
|
||||
dir = wp_content_dir
|
||||
else
|
||||
dir = 'wp-content'
|
||||
dir = 'wp-content'
|
||||
end
|
||||
|
||||
if response.body =~ /["'][^"']*\/#{Regexp.escape(dir)}\/[^"']*["']/i
|
||||
|
||||
Reference in New Issue
Block a user