Skip to content
Permalink
Browse files

Fix OEmbed discovery not handling different URL variants in query (#1…

  • Loading branch information...
Gargron committed Nov 21, 2019
1 parent 2edf6d8 commit a60b602ade955c8ce620facae160ffabd7893d4b
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/services/fetch_oembed_service.rb
@@ -58,7 +58,7 @@ def cache_endpoint!
url_domain = Addressable::URI.parse(@url).normalized_host

endpoint_hash = {
endpoint: @endpoint_url.gsub(URI.encode_www_form_component(@url), '{url}'),
endpoint: @endpoint_url.gsub(/(=(http[s]?(%3A|:)(\/\/|%2F%2F)))([^&]*)/i, '={url}'),
format: @format,
}

0 comments on commit a60b602

Please sign in to comment.
You can’t perform that action at this time.