Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

How to disable specific adapters? #2359

Closed
roshats opened this issue Dec 7, 2016 · 2 comments
Closed

How to disable specific adapters? #2359

roshats opened this issue Dec 7, 2016 · 2 comments

Comments

@roshats
Copy link

roshats commented Dec 7, 2016

I want to disable/unregister HttpUrlProxyAdapter because it discloses server's ip. Scenario: attacker submits url to his server as attachment, Paperclip loads file from attacker's server. As a result attacker knows server's real ip even if service uses cloudflare.

@stavskiys
Copy link

stavskiys commented Apr 6, 2018

Looks like it is not default adapter. You need to look register method inside your app. Probably it defined in some file inside folder config/initializers/*. For default adapters exists a method. For example: Paperclip.io_adapters.unregister(Paperclip::StringioAdapter)

@roshats
Copy link
Author

roshats commented Apr 7, 2018

Thanks @stavskiys. The issue is closed in #2435.

@roshats roshats closed this as completed Apr 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants