mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:51:07 +08:00
SECURITY: Expand and improve SSRF Protections (#18815)
See https://github.com/discourse/discourse/security/advisories/GHSA-rcc5-28r3-23rr Co-authored-by: OsamaSayegh <asooomaasoooma90@gmail.com> Co-authored-by: Daniel Waterworth <me@danielwaterworth.com>
This commit is contained in:
@ -1295,7 +1295,6 @@ RSpec.describe CookedPostProcessor do
|
||||
|
||||
stub_request(:head, url)
|
||||
stub_request(:get , url).to_return(body: body)
|
||||
FinalDestination.stubs(:lookup_ip).returns('1.2.3.4')
|
||||
|
||||
# not an ideal stub but shipping the whole image to fast image can add
|
||||
# a lot of cost to this test
|
||||
|
Reference in New Issue
Block a user