Skip to content

Commit

Permalink
Merge pull request #3 from TaopaiC/patch/encode_path
Browse files Browse the repository at this point in the history
Fix encoding issue in encode_path method
  • Loading branch information
khiav223577 authored Nov 21, 2024
2 parents ec63b40 + b08f857 commit f6b5d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vault/encode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module EncodePath
#
# @return [String]
def encode_path(path)
path.b.gsub(%r!([^a-zA-Z0-9_.-/]+)!) { |m|
path.b.gsub(%r!([^a-zA-Z0-9_.\-/]+)!) { |m|
'%' + m.unpack('H2' * m.bytesize).join('%').upcase
}
end
Expand Down

0 comments on commit f6b5d2a

Please sign in to comment.