dradis-nessus 4.6.0 → 4.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13d6bb3db8e662450f5950b1264ab196fee489b746021b6f896739a266dec966
4
- data.tar.gz: 7a5c3320f1fb5f203765995a4e40abfd34a80416774d18db84edd5023d46eeb3
3
+ metadata.gz: a3e1a48ec4d494ff441d2bdc36715921974e4a0a6829758c0d51cc38c0cdd855
4
+ data.tar.gz: a372370e2ec2079c541476b9689a524abaa6d661d5782098943ad667264b4fc3
5
5
  SHA512:
6
- metadata.gz: 42268c36fe25b5694a9a4936e28e02046ff7c88723558b0c2910593878e79b0f942b243b77a82e36e7fc39b761fa78093b32943625b89f4f904254d08b7607be
7
- data.tar.gz: d34238ed08bdc6f63b01cfed3e9c83c538d29e0b781ee6a7c64b50391cbd4fbf104f026404fc4b8c856c093764fd8ca982209271f977c9bccd54675a7bf7fbd9
6
+ metadata.gz: 7ca605cb4e8f5893e757cc7c3a86fcaadc12f75b4621d37537ec90fb2cc5f2a1bc3ae7d69cb19a8dbf219d90ac38a9b0fbc1b2dad709f2eda5708a871f3da87b
7
+ data.tar.gz: b990aba89cf10d2d732db508a318cd17d1b5071d220ffe491471c5ab6a9250d272a167e6ce3c181c4505735ae31757be22dbdf414e858a30f342581605b40d06
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ v4.7.0 (February 2023)
2
+ - Clean up code tags in description fields
3
+
1
4
  v4.6.0 (November 2022)
2
5
  - No changes
3
6
 
@@ -8,7 +8,7 @@ module Dradis
8
8
 
9
9
  module VERSION
10
10
  MAJOR = 4
11
- MINOR = 6
11
+ MINOR = 7
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.7.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-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dradis-plugins