diff --git a/spec/lib/wpscan/wp_theme_spec.rb b/spec/lib/wpscan/wp_theme_spec.rb index 67ea078b..6f4fc2c3 100644 --- a/spec/lib/wpscan/wp_theme_spec.rb +++ b/spec/lib/wpscan/wp_theme_spec.rb @@ -87,6 +87,11 @@ describe WpTheme do @fixture = fixtures_dir + '/inline_link_tag.html' @expected_name = 'inline' end + + it 'should get the theme name even if relative URLs are used' do + @fixture = fixtures_dir + '/relative_urls.html' + @expected_name = 'theme_name' + end end describe '#find_from_wooframework' do diff --git a/spec/samples/wpscan/wp_theme/find/css_link/relative_urls.html b/spec/samples/wpscan/wp_theme/find/css_link/relative_urls.html new file mode 100644 index 00000000..f494bc2d --- /dev/null +++ b/spec/samples/wpscan/wp_theme/find/css_link/relative_urls.html @@ -0,0 +1 @@ +