Skip to content

NativePath: use Assembly.CodeBase#1409

Merged
carlosmn merged 1 commit into
masterfrom
ethomson/managedpath
Jan 13, 2017
Merged

NativePath: use Assembly.CodeBase#1409
carlosmn merged 1 commit into
masterfrom
ethomson/managedpath

Conversation

@ethomson

Copy link
Copy Markdown
Member

Use Assembly.CodeBase instead of Assembly.EscapedCodeBase since
the latter does not actually properly escape the path in a reversible
way.

eg, if a path contains a space, it will be encoded as %20 in the
EscapedCodeBase however if a path contains a literal %20 then it
will also be encoded as %20.

Fixes #1389

Use `Assembly.CodeBase` instead of `Assembly.EscapedCodeBase` since
the latter does not actually properly escape the path in a reversible
way.

eg, if a path contains a space, it will be encoded as `%20` in the
`EscapedCodeBase` however if a path contains a literal `%20` then it
will _also_ be encoded as `%20`.
@sandorfr

sandorfr commented Feb 26, 2017

Copy link
Copy Markdown

Is there any chance to see this released soon?

Edit : Oops didn't see the prerelease package as it's not in the Releases on github https://www.nuget.org/packages/LibGit2Sharp/0.24.0-pre20170124092542

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