From 01cd7b6fc15af0ca97b8543e460abe8dd8b41991 Mon Sep 17 00:00:00 2001 From: Gregg Kellogg Date: Tue, 9 Jul 2024 09:09:58 -0700 Subject: [PATCH] Make sure argument to URI.intern is a string. --- lib/rdf/model/uri.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rdf/model/uri.rb b/lib/rdf/model/uri.rb index e6deb7aa..deeb4ffc 100644 --- a/lib/rdf/model/uri.rb +++ b/lib/rdf/model/uri.rb @@ -160,7 +160,7 @@ def self.cache # (see #initialize) # @return [RDF::URI] an immutable, frozen URI object def self.intern(str, *args, **options) - (cache[(str = str.to_s).to_sym] ||= self.new(str, *args, **options)).freeze + (cache[(str = str.to_s).to_sym] ||= self.new(str.to_s, *args, **options)).freeze end ##