Explorar el Código

raise-when-oembed-not-found (#2882)

master
masarakki hace 7 años
committed by Eugen Rochko
padre
commit
267ed3d74b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. +1
    -0
      app/lib/provider_discovery.rb

+ 1
- 0
app/lib/provider_discovery.rb Ver fichero

@@ -22,6 +22,7 @@ class ProviderDiscovery < OEmbed::ProviderDiscovery
format ||= :xml if provider_endpoint
end

raise OEmbed::NotFound, url if provider_endpoint.nil?
begin
provider_endpoint = Addressable::URI.parse(provider_endpoint)
provider_endpoint.query = nil


Cargando…
Cancelar
Guardar