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 the link to file names properly. #158

Merged
merged 3 commits into from
Mar 29, 2016

Conversation

melle
Copy link

@melle melle commented Mar 3, 2016

Objective C category file names often contain a plus sign (+). The link created by
slather (i.e. "NSString+UnicornPoo.m.html") is working fine on the local filesystem.

Stuff breaks, when the same link is used inside an application server (i.e. Tomcat
running TeamCity, including the html report as build artifact). The plus is translated
to a space character and the browser requests a file named "NSString UnicornPoo.m.html",
which does not exist.

Now the filename is encoded as "NSString%2BUnicornPoo.m.html", this does not
harm local file:// links and is working in TeamCity too 🌈

Objective C category file names often contain a plus sign (+). The link created by
slather (i.e. "NSString+UnicornPoo.m.html") is working fine on the local filesystem.

Stuff breaks, when the same link is used inside an application server (i.e. Tomcat
running TeamCity, including the html report as build artifact). The plus is translated
to a space character and the browser requests a file named "NSString UnicornPoo.m.html",
which does not exist.

Now the filename is encoded as "NSString%2BUnicornPoo.m.html", this does not
harm local file:// links and works in TeamCity too 🌈
@neonichu
Copy link
Member

neonichu commented Mar 7, 2016

Great, thanks for the contribution. Could you please add an entry to the Changelog as well?

@melle
Copy link
Author

melle commented Mar 29, 2016

@neonichu changelog was updated

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling c87d51b on raumfeld:fix-plus-sign-in-filenames into * on SlatherOrg:master*.

@neonichu
Copy link
Member

Thanks!

@neonichu neonichu merged commit 172472b into SlatherOrg:master Mar 29, 2016
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.

3 participants