Skip to content

Commit 6532107

Browse files
committed
Remove whitespace from spip version regex
1 parent 2c79c3d commit 6532107

File tree

1 file changed

+2
-2
lines changed
  • lib/msf/core/exploit/remote/http

1 file changed

+2
-2
lines changed

lib/msf/core/exploit/remote/http/spip.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ def spip_version
2323
)
2424

2525
return unless res
26-
26+
2727
version = nil
2828

2929
version_string = res.get_html_document.at('head/meta[@name="generator"]/@content')&.text
30-
if version_string =~ /SPIP (.*) /
30+
if version_string =~ /SPIP (.*)/
3131
version = ::Regexp.last_match(1)
3232
end
3333

0 commit comments

Comments
 (0)