Respond with 400 when invalid URL given to oembed endpoint

element
Marcin Kulik 9 years ago
parent 4c3e688904
commit 16a8d94d60

@ -18,6 +18,8 @@ class OembedController < ApplicationController
else
head :bad_request
end
rescue URI::InvalidURIError
head :bad_request
end
private

Loading…
Cancel
Save