We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7a8c66 commit c6719dcCopy full SHA for c6719dc
app/helpers/url_helpers.rb
@@ -9,7 +9,7 @@ def expand_absolute_urls(content, base_url)
9
url = node.get_attribute(attr)
10
next if url =~ URI::RFC2396_PARSER.regexp[:ABS_URI]
11
12
- node.set_attribute(attr, URI.join(URI.parse(base_url), url).to_s)
+ node.set_attribute(attr, URI.join(base_url, url).to_s)
13
rescue URI::InvalidURIError
14
# Just ignore. If we cannot parse the url, we don't want the entire
15
# import to blow up.
0 commit comments