diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-15 21:44:56 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-15 21:44:56 +0000 |
commit | 41f328767d7cee09dd6cc9dc954f73cf35f1d7d1 (patch) | |
tree | c392eb91d864960d886ad4bad0f2ac90e6c17beb /lib/uri/generic.rb | |
parent | b8322416a1ee2e4177d39476e229222aba2a4ef3 (diff) | |
download | ruby-41f328767d7cee09dd6cc9dc954f73cf35f1d7d1.tar.gz |
Don't include bad password in URI exception output
We shouldn't include the bad password in the URI exception output
message. Just knowing that there is a bad password is enough
information.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/uri/generic.rb')
-rw-r--r-- | lib/uri/generic.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index 5e980d699e..81d46f72a5 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -428,7 +428,7 @@ module URI if parser.regexp[:USERINFO] !~ v raise InvalidComponentError, - "bad component(expected user component): #{v}" + "bad password component" end return true |