dradis-nessus 4.6.0 → 4.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13d6bb3db8e662450f5950b1264ab196fee489b746021b6f896739a266dec966
4
- data.tar.gz: 7a5c3320f1fb5f203765995a4e40abfd34a80416774d18db84edd5023d46eeb3
3
+ metadata.gz: 0c039e13d688f7d7548a486d3b1cf8c0fde79e93011237b350f82480beae2882
4
+ data.tar.gz: d3662405266ace5114d0eec7f73404992253151c4635743d089e86268e95d07f
5
5
  SHA512:
6
- metadata.gz: 42268c36fe25b5694a9a4936e28e02046ff7c88723558b0c2910593878e79b0f942b243b77a82e36e7fc39b761fa78093b32943625b89f4f904254d08b7607be
7
- data.tar.gz: d34238ed08bdc6f63b01cfed3e9c83c538d29e0b781ee6a7c64b50391cbd4fbf104f026404fc4b8c856c093764fd8ca982209271f977c9bccd54675a7bf7fbd9
6
+ metadata.gz: 1e2d9fb92296c187743ee3656fd0a5f2bad64041c149f1d1f4109fa1fe04d5b872fffde16298161cc96fc2f28f98d3a2962c3867efdf3882782f25d4a16581a4
7
+ data.tar.gz: c5ad08f7f9495cc5697bf9c8a3517521be1b1329cbe392d614a99fa67f7868dadb209bb4b18aae35e0f42091acff0a3a227ce3505a90aee7c06faafd489972fd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ v4.8.0 (April 2023)
2
+ - No changes
3
+
4
+ v4.7.0 (February 2023)
5
+ - Clean up code tags in description fields
6
+
1
7
  v4.6.0 (November 2022)
2
8
  - No changes
3
9
 
@@ -8,7 +8,7 @@ module Dradis
8
8
 
9
9
  module VERSION
10
10
  MAJOR = 4
11
- MINOR = 6
11
+ MINOR = 8
12
12
  TINY = 0
13
13
  PRE = nil
14
14
 
@@ -87,7 +87,8 @@ module Nessus
87
87
  # exploit_framework_metasploit, exploit_framework_core
88
88
  tag = @xml.xpath("./#{method_name}").first
89
89
  if tag
90
- return tag.text
90
+ text = tag.text
91
+ return tags_with_html_content.include?(method) ? cleanup_html(text) : text
91
92
  end
92
93
 
93
94
  # then the custom XML tags (cm: namespace)
@@ -117,5 +118,18 @@ module Nessus
117
118
  return nil
118
119
  end
119
120
  end
121
+
122
+ private
123
+
124
+ def cleanup_html(source)
125
+ result = source.dup
126
+ result.gsub!(/<code>(.*?)<\/code>/) { "\n\nbc. #{$1}\n\np. \n" }
127
+ result
128
+ end
129
+
130
+ def tags_with_html_content
131
+ [:description]
132
+ end
133
+
120
134
  end
121
- end
135
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dradis-nessus
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.0
4
+ version: 4.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Martin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-20 00:00:00.000000000 Z
11
+ date: 2023-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dradis-plugins