Respond with 400 when invalid URL given to oembed endpoint

This commit is contained in:
Marcin Kulik 2015-09-16 10:04:06 +02:00
parent 4c3e688904
commit 16a8d94d60

View File

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