rex-mime 0.1.9 → 0.1.10

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: a3e774cc84625fe6a0d43919757a5a1b61c33c512f30e9fc9faab01aa8b475e7
4
- data.tar.gz: 93ade1def0f4ae1cc934aeaa1a623f897b88c2e6444de591cdef9677d91e0371
3
+ metadata.gz: 7a3fca119f65377459b14fafe162e8c91482e3697c83f72b44b2c19ffb03c23d
4
+ data.tar.gz: e9deb580ad1e2964b47610e94bcf0e21761886bfff69a4065d951d5dc8d4665e
5
5
  SHA512:
6
- metadata.gz: 2225c468dcf143e4722d9ff48422b9174c062f4b42383696f1159552909edb5fc7ea40b012a3961e4bd8d174c0197fefb27d22f51ce14b173cc6472253daca42
7
- data.tar.gz: 58af7d1dcba2d84a761215ae32bbd494b725ef0491281af0665f9f6950c9c6755b8ed78ad9f1d33338e37da4257d0c28ecaff20bb6727cc2a0d8d90b0f43177c
6
+ metadata.gz: 89a02e27a7e11f446e0aa6c1669cf249e1de491f1d7d1ff719fa26ec7ed76ff89d5aba0f6d28cf57a15bbc3632002271033cbc34c0605702ffb59cf823d043bf
7
+ data.tar.gz: 85015c6d72c1891e0fc626c673b90ce6d6130c491efed22c264e9406d884e2ade6efa6e8a60eb2f8fcc708838601f43375e1c0c02e022cf723880b40ef7991c3
checksums.yaml.gz.sig CHANGED
Binary file
@@ -26,7 +26,7 @@ class Message
26
26
 
27
27
  if ctype && ctype[1] && ctype[1] =~ /multipart\/mixed;\s*boundary="?([A-Za-z0-9'\(\)\+\_,\-\.\/:=\?^\s]+)"?/
28
28
  self.bound = $1
29
- chunks = body.to_s.split(/--#{self.bound}(--)?\r?\n/)
29
+ chunks = body.to_s.split(/--#{self.bound}(--)?\r?\n?/)
30
30
  self.content = chunks.shift.to_s.gsub(/\s+$/, '')
31
31
  self.content << "\r\n" unless self.content.empty?
32
32
 
@@ -35,7 +35,7 @@ class Message
35
35
  head,body = chunk.split(/\r?\n\r?\n/, 2)
36
36
  part = Rex::MIME::Part.new
37
37
  part.header.parse(head)
38
- part.content = body.gsub(/\s+$/, '')
38
+ part.content = body&.delete_suffix("\r\n")
39
39
  self.parts << part
40
40
  end
41
41
  else
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Mime
3
- VERSION = "0.1.9"
3
+ VERSION = "0.1.10"
4
4
  end
5
5
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rex-mime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Metasploit Hackers
@@ -34,7 +34,7 @@ cert_chain:
34
34
  DgscAao7wB3xW2BWEp1KnaDWkf1x9ttgoBEYyuYwU7uatB67kBQG1PKvLt79wHvz
35
35
  Dxs+KOjGbBRfMnPgVGYkORKVrZIwlaboHbDKxcVW5xv+oZc7KYXWGg==
36
36
  -----END CERTIFICATE-----
37
- date: 2024-12-06 00:00:00.000000000 Z
37
+ date: 2024-12-20 00:00:00.000000000 Z
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: rake
metadata.gz.sig CHANGED
Binary file