iodine 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of iodine might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 752ba7ae9bc2bf3181d02e697d00bc09938b0ab6
4
- data.tar.gz: c25fd0acb874832e01378b34ae08d572e968046e
3
+ metadata.gz: 52b6a918e31cf2734100dca991e1641bc8b41363
4
+ data.tar.gz: df5c3697673f57ddb4917b86a883438618f8ff9b
5
5
  SHA512:
6
- metadata.gz: e2a6f751f8e14a91961f2a54f334ecc630aec25efa50cfb5134082fee50002e9c69f4b9b8576f0bfa80bffd790e89a8d7d790758251f11551e98ee567bca0467
7
- data.tar.gz: 4aabdd6b9c80d81268165ecca77ea075aa7c944129f08148906b7f9b2299588fe8f31d8cbcdfb8ede9c417bff0230342f4f597fddce884a9bcc18310c5de0e04
6
+ metadata.gz: 246d8001e1a4866ce2c0e77b616b2eb7cb06f52b4a2d63c701b0c0a4cd15cc4faebb6b81ec3f82a546e88a42dec631b6468112107bdd01fe1722d54b2d89679b
7
+ data.tar.gz: cc87fe1ba30eb7d121e98343bbfa2452a620b52ba5fe5cb607d7c9d978f8b391056e61c5ebaec999cff714e75f7815f3148cf5e3c26488a033637298120695b1
@@ -8,6 +8,12 @@ Please notice that this change log contains changes for upcoming releases as wel
8
8
 
9
9
  ***
10
10
 
11
+ Change log v.0.1.3
12
+
13
+ **Fix**: fixed an issue with the new form/multipart parser, where the '+' sign would be converted to spaces on form fields (not uploaded files), causing inadvert potential change to the original POSTed data.
14
+
15
+ ***
16
+
11
17
  Change log v.0.1.2
12
18
 
13
19
  **Fix**: fixed an issue where the default implementation of `ping` didn not reset the timeout if the connection wasn't being closed (the default implementation checks if the Protocol is working on existing data and either resets the timer allowing the work to complete or closes the connection if no work is being done).
@@ -412,8 +412,8 @@ module Iodine
412
412
  end_part_pos = (body.pos - line.bytesize) - 2
413
413
  new_part_pos = body.pos
414
414
  body.pos = end_part_pos
415
- end_part_pos += 1 unless body.getc == "\r"
416
-
415
+ end_part_pos += 1 unless body.getc =~ /[\r\n]/.freeze
416
+ end_part_pos += 1 unless body.getc =~ /[\r\n\-]/.freeze
417
417
  if part_headers['content-type'.freeze]
418
418
  if part_headers['content-type'.freeze] =~ /multipart/i
419
419
  body.pos = start_part_pos
@@ -438,7 +438,7 @@ module Iodine
438
438
  end
439
439
  else
440
440
  body.pos = start_part_pos
441
- add_param_to_hash name, uri_decode!( body.read(end_part_pos - start_part_pos) ), request[:params]
441
+ add_param_to_hash name, form_decode!( body.read(end_part_pos - start_part_pos) ), request[:params]
442
442
  end
443
443
  body.pos = new_part_pos
444
444
  end
@@ -1,3 +1,3 @@
1
1
  module Iodine
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iodine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boaz Segev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-24 00:00:00.000000000 Z
11
+ date: 2015-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler