Skip to content

Commit 33e0e57

Browse files
committed
Rails8: remove URI.parse
turns out this wasn't necessary
1 parent c7a8c66 commit 33e0e57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/helpers/url_helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def expand_absolute_urls(content, base_url)
99
url = node.get_attribute(attr)
1010
next if url =~ URI::RFC2396_PARSER.regexp[:ABS_URI]
1111

12-
node.set_attribute(attr, URI.join(URI.parse(base_url), url).to_s)
12+
node.set_attribute(attr, URI.join(base_url, url).to_s)
1313
rescue URI::InvalidURIError
1414
# Just ignore. If we cannot parse the url, we don't want the entire
1515
# import to blow up.

0 commit comments

Comments
 (0)