Respond with 400 when invalid URL given to oembed endpoint
This commit is contained in:
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…
Reference in New Issue
Block a user