SECURITY: Add FinalDestination::FastImage that's SSRF safe

This commit is contained in:
Ted Johansson
2023-02-16 12:02:03 +08:00
committed by Blake Erickson
parent 6dcb099547
commit 39c2f63b35
4 changed files with 95 additions and 2 deletions

View File

@@ -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,
)