mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
SECURITY: Add FinalDestination::FastImage that's SSRF safe
This commit is contained in:
committed by
Blake Erickson
parent
6dcb099547
commit
39c2f63b35
@@ -220,7 +220,7 @@ RSpec.describe SearchIndexer do
|
||||
Jobs.run_immediately!
|
||||
SiteSetting.max_image_width = 1
|
||||
|
||||
stub_request(:get, "https://meta.discourse.org/some.png").to_return(
|
||||
stub_request(:get, "https://1.2.3.4/some.png").to_return(
|
||||
status: 200,
|
||||
body: file_from_fixtures("logo.png").read,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user