We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc69560 commit 7808ab0Copy full SHA for 7808ab0
lib/mongo/uri.rb
@@ -454,7 +454,7 @@ def raise_invalid_error_no_fmt!(details)
454
end
455
456
def decode(value)
457
- ::URI.decode(value)
+ ::URI::DEFAULT_PARSER.unescape(value)
458
459
460
def encode(value)
spec/mongo/uri_spec.rb
@@ -352,7 +352,7 @@
352
let(:servers) { '%2Ftmp%2Fmongodb-27017.sock' }
353
354
it 'returns an array with the parsed server' do
355
- expect(uri.servers).to eq([URI.unescape(servers)])
+ expect(uri.servers).to eq([URI::DEFAULT_PARSER.unescape(servers)])
356
357
358
0 commit comments