summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-24 07:33:24 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-24 07:33:24 +0000
commit4bcbf77c8d34bd59c0d6f59f52ca31418d22dec4 (patch)
tree9c55dd09d9c9cf0040533e8e17b90e4981dd2ce1 /lib
parentaad6dd50c129d4a28bd6a2f800c277e851c3348a (diff)
downloadruby-4bcbf77c8d34bd59c0d6f59f52ca31418d22dec4.tar.gz
ruby-4bcbf77c8d34bd59c0d6f59f52ca31418d22dec4.tar.xz
ruby-4bcbf77c8d34bd59c0d6f59f52ca31418d22dec4.zip
* lib/uri/generic.rb (eql?): Check the class of the compared object.
Based on a patch by Peter McLain [ruby-core:27019] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/uri/generic.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb
index fd01f8979..1ca970de7 100644
--- a/lib/uri/generic.rb
+++ b/lib/uri/generic.rb
@@ -1066,6 +1066,7 @@ module URI
end
def eql?(oth)
+ self.class == oth.class &&
parser == oth.parser &&
self.component_ary.eql?(oth.component_ary)
end