Kaynağa Gözat

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

Fix #12433
master^2
Eugen Rochko 4 yıl önce
committed by GitHub
ebeveyn
işleme
a60b602ade
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      app/services/fetch_oembed_service.rb

+ 1
- 1
app/services/fetch_oembed_service.rb Dosyayı Görüntüle

@@ -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,
}



Yükleniyor…
İptal
Kaydet