Skip to content
Snippets Groups Projects
Unverified Commit a60b602a authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix OEmbed discovery not handling different URL variants in query (#12439)

Fix #12433
parent 2edf6d81
Branches
Tags
No related merge requests found
......@@ -58,7 +58,7 @@ class FetchOEmbedService
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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment