diff options
Diffstat (limited to 'lib/uri')
-rw-r--r-- | lib/uri/generic.rb | 2 | ||||
-rw-r--r-- | lib/uri/mailto.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index 8f5ab6375d..f569a22f49 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -516,7 +516,7 @@ module URI if v && v != '' && @parser.regexp[:QUERY] !~ v raise InvalidComponentError, "bad component(expected query component): #{v}" - end + end return true end diff --git a/lib/uri/mailto.rb b/lib/uri/mailto.rb index c66c95fcd0..38f972e1fb 100644 --- a/lib/uri/mailto.rb +++ b/lib/uri/mailto.rb @@ -135,7 +135,7 @@ module URI @headers = [] if MAILTO_REGEXP =~ @opaque - if arg[-1] + if arg[-1] self.to = $1 self.headers = $2 else |