Skip to content

Commit 01cd7b6

Browse files
committed
Make sure argument to URI.intern is a string.
1 parent 13164ed commit 01cd7b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rdf/model/uri.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def self.cache
160160
# (see #initialize)
161161
# @return [RDF::URI] an immutable, frozen URI object
162162
def self.intern(str, *args, **options)
163-
(cache[(str = str.to_s).to_sym] ||= self.new(str, *args, **options)).freeze
163+
(cache[(str = str.to_s).to_sym] ||= self.new(str.to_s, *args, **options)).freeze
164164
end
165165

166166
##

0 commit comments

Comments
 (0)