Skip to content

Commit

Permalink
Merge pull request #252 from sisimai/issue-251-base64-decoding
Browse files Browse the repository at this point in the history
Fix Sisimai::MIME.mimedecoding
  • Loading branch information
azumakuniyuki authored Jan 27, 2023
2 parents 7dbf241 + 392e4ce commit e668ba4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ RELEASE NOTES for Ruby version of Sisimai
- releases: "https://github.com/sisimai/rb-sisimai/releases"
- download: "https://rubygems.org/gems/sisimai"

v4.25.15p1
--------------------------------------------------------------------------------
- release: ""
- version: ""
- changes:
- Fix `Sisimai::MIME.mimedecode()` method when the encoding name is lower case
"b" (not "B") like `=?utf-8?b?...` #251 Thanks to @revsystem

v4.25.15
--------------------------------------------------------------------------------
- release: "Thu, 22 Dec 2022 13:13:13 +0900 (JST)"
Expand Down
2 changes: 1 addition & 1 deletion lib/sisimai/mime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def mimedecode(argvs = [])
mimeencoded0 = cv[4]

decodedtext0 << cv[1]
decodedtext0 << if encodingname == 'B'
decodedtext0 << if encodingname.upcase == 'B'
Base64.decode64(mimeencoded0)
else
mimeencoded0.unpack('M').first
Expand Down
2 changes: 1 addition & 1 deletion lib/sisimai/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Define the version number of Sisimai
module Sisimai
VERSION = '4.25.15'.freeze
VERSION = '4.25.15p1'.freeze
end

0 comments on commit e668ba4

Please sign in to comment.