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
|
if wp_content_dir
|
||||||
dir = wp_content_dir
|
dir = wp_content_dir
|
||||||
else
|
else
|
||||||
dir = 'wp-content'
|
dir = 'wp-content'
|
||||||
end
|
end
|
||||||
|
|
||||||
if response.body =~ /["'][^"']*\/#{Regexp.escape(dir)}\/[^"']*["']/i
|
if response.body =~ /["'][^"']*\/#{Regexp.escape(dir)}\/[^"']*["']/i
|
||||||
|
|||||||
Reference in New Issue
Block a user