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

Fix problem with path relativize double URI escaping items like spaces #183

Merged
merged 5 commits into from
Jan 30, 2016

Conversation

stevenebutler
Copy link
Contributor

I had some tests with spaces in the filenames (e.g. test name) which were coming out in the screenshot links broken as
test%2520name

I believe the issue is that relativize is URI escaping the paths in order to compare them, but then the relativize function was doing a final URI escape on the URI escaped path.

The fix in this patch is to remove the extra escape.

Sorry about the CRLF conversion in the patch - I thought I had set it up to commit with LF only, but it seems to show all diffs as full file diffs. Feel free to simply apply the fix locally, if it looks good.

@vmi vmi merged commit 56b5e1e into vmi:master Jan 30, 2016
@vmi
Copy link
Owner

vmi commented Jan 30, 2016

Thanks your PR!

@vmi vmi added the bug label Jan 30, 2016
@vmi vmi added this to the 2.3.1 milestone Jan 30, 2016
@vmi vmi self-assigned this Jan 30, 2016
@stevenebutler
Copy link
Contributor Author

No problem. Thanks for your very useful tool.

On 30 Jan 2016 12:34, "Motonori IWAMURO" <[email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:

Thanks your PR!


Reply to this email directly or view it on GitHub
#183 (comment)
.

Regards,
Steven Butler

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

Successfully merging this pull request may close these issues.

2 participants