Skip to content

Commit f01aee9

Browse files
authored
Merge pull request #460 from ninp0/master
PWN::Plugins::DefectDojo module - testing tags that are line feed del…
2 parents 36c37f8 + 803f33f commit f01aee9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ cd /opt/pwn
3737
$ ./install.sh
3838
$ ./install.sh ruby-gem
3939
$ pwn
40-
pwn[v0.4.942]:001 >>> PWN.help
40+
pwn[v0.4.943]:001 >>> PWN.help
4141
```
4242

4343
[![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
@@ -52,7 +52,7 @@ $ rvm use ruby-3.2.2@pwn
5252
$ gem uninstall --all --executables pwn
5353
$ gem install --verbose pwn
5454
$ pwn
55-
pwn[v0.4.942]:001 >>> PWN.help
55+
pwn[v0.4.943]:001 >>> PWN.help
5656
```
5757

5858
If you're using a multi-user install of RVM do:
@@ -62,7 +62,7 @@ $ rvm use ruby-3.2.2@pwn
6262
$ rvmsudo gem uninstall --all --executables pwn
6363
$ rvmsudo gem install --verbose pwn
6464
$ pwn
65-
pwn[v0.4.942]:001 >>> PWN.help
65+
pwn[v0.4.943]:001 >>> PWN.help
6666
```
6767

6868

lib/pwn/plugins/defect_dojo.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ module DefectDojo
449449
http_body[:lead] = user_by_username_object.first[:id]
450450
end
451451

452-
http_body[:tags] = opts[:tags].to_s.strip.chomp.scrub.gsub("\s,\s", ',').split(',').join("\n") if opts[:tags]
452+
http_body[:tags] = opts[:tags].to_s.strip.chomp.scrub.delete("\s").split(',').join("\r\n") if opts[:tags]
453453

454454
minimum_severity = opts[:minimum_severity].to_s.strip.chomp.scrub.downcase.capitalize
455455
case minimum_severity
@@ -555,7 +555,7 @@ module DefectDojo
555555
end
556556
end
557557

558-
http_body[:tags] = opts[:tags].to_s.strip.chomp.scrub.gsub("\s,\s", ',').split(',').join("\n") if opts[:tags]
558+
http_body[:tags] = opts[:tags].to_s.strip.chomp.scrub.delete("\s").split(',').join("\r\n") if opts[:tags]
559559

560560
http_body[:test] = opts[:test_resource_uri] if opts[:test_resource_uri]
561561

lib/pwn/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module PWN
4-
VERSION = '0.4.942'
4+
VERSION = '0.4.943'
55
end

0 commit comments

Comments
 (0)