mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
SECURITY: Don't allow base_uri as embeddable host if none exist
This commit is contained in:
@ -65,6 +65,10 @@ describe EmbeddableHost do
|
||||
end
|
||||
end
|
||||
|
||||
it "doesn't allow forum own URL if no hosts exist" do
|
||||
expect(EmbeddableHost.url_allowed?(Discourse.base_url)).to eq(false)
|
||||
end
|
||||
|
||||
describe "url_allowed?" do
|
||||
fab!(:host) { Fabricate(:embeddable_host) }
|
||||
|
||||
|
Reference in New Issue
Block a user