This commit is contained in:
Erwan
2012-09-08 23:59:46 +02:00
parent 91cfa5a060
commit a0a1c24006
3 changed files with 21 additions and 10 deletions

View File

@@ -64,7 +64,7 @@ class WpTheme < Vulnerable
def self.find_from_css_link(target_uri)
response = Browser.instance.get(target_uri.to_s, :follow_location => true, :max_redirects => 2)
if matches = %r{https?://.*/themes/(.*)/style.css}i.match(response.body)
if matches = %r{https?://[^"]+/themes/([^"]+)/style.css}i.match(response.body)
style_url = matches[0]
theme_name = matches[1]