Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape plusses for the download! #685

Merged
merged 1 commit into from
Apr 4, 2012

Conversation

adrianpike
Copy link
Contributor

If there's a plus in, say, an S3 signed request generated by fog, and it gets unescaped, you'll get a 403 when you try and hit it.

I was getting similar symptoms to #294 whenever my signed requests to S3 had a plus in them - this fixes that. I'd like to make sure it doesn't break urls for folks if there's a plus in the non-params.

Another possibility (and one that I'm actually doing on my side of things) is to get smarter about how params are handled in a remote_url. I'm having to explicitly strip off params in my fork of carrierwave_direct, otherwise my generated versions have the params included in their name. This is on my list of things to investigate post-launch, whether this is cw-direct or cw's responsibility.

Thanks!

If there's a plus in, say, an S3 signed request generated by fog, and it gets unescaped, you'll get a 403 when you try and hit it.
bensie added a commit that referenced this pull request Apr 4, 2012
Escape plusses for the download!
@bensie bensie merged commit c7826c5 into carrierwaveuploader:master Apr 4, 2012
@bensie
Copy link
Member

bensie commented Apr 4, 2012

Not a fan of the endless chaining of gsub calls, but hey, what's one more?

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants