Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Broken when + character is in the description #192

Open
yzimet opened this issue Mar 9, 2017 · 4 comments
Open

Broken when + character is in the description #192

yzimet opened this issue Mar 9, 2017 · 4 comments

Comments

@yzimet
Copy link

yzimet commented Mar 9, 2017

If the description contains a + character (maybe others too?), the resulting image is broken:

image

@trotzig
Copy link
Contributor

trotzig commented Mar 13, 2017

Hi @yzimet, and thanks for the report! Judging by the screenshot, it looks like you are running a fairly old version of happo. I tried to reproduce this with the latest version, but it looks like we correctly escape characters at this point.

Can you give a later version a try?

@lencioni
Copy link
Contributor

This is from Happo 4.0.1, which I think is the latest version.

@lencioni
Copy link
Contributor

When I looked at it, it seemed like the URL was correctly encoded on the page, but the asset didn't exist. I wonder if there is something weird with the uploader.

@trotzig
Copy link
Contributor

trotzig commented Mar 13, 2017

Ah, I rushed to conclusions. I looked at the screenshot and didn't see the tabs above the image, thinking it was an old version. But I now realize that screenshot is probably for a new image, correct?

We're not doing much on our end to escape things. We basically pass in a Key and then use the Location that's sent back in the response from aws. Relevant code:

this.s3.upload(uploadParams, (err, { Location }) => {

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

3 participants