File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 66/pkg /
77/spec /reports /
88/tmp /
9+ Gemfile.lock
Original file line number Diff line number Diff line change 11source "https://rubygems.org"
22
33gem "rake"
4- gem "minitest "
4+ gem "test-unit "
Original file line number Diff line number Diff line change @@ -99,9 +99,11 @@ def urlsafe_decode64(str)
9999 # NOTE: RFC 4648 does say nothing about unpadded input, but says that
100100 # "the excess pad characters MAY also be ignored", so it is inferred that
101101 # unpadded input is also acceptable.
102- str = str . tr ( "-_" , "+/" )
103102 if !str . end_with? ( "=" ) && str . length % 4 != 0
104103 str = str . ljust ( ( str . length + 3 ) & ~3 , "=" )
104+ str . tr! ( "-_" , "+/" )
105+ else
106+ str = str . tr ( "-_" , "+/" )
105107 end
106108 strict_decode64 ( str )
107109 end
You can’t perform that action at this time.
0 commit comments