Skip to content

Fixed prependBase #384

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

Merged
merged 1 commit into from
Apr 9, 2020
Merged

Fixed prependBase #384

merged 1 commit into from
Apr 9, 2020

Conversation

gkellogg
Copy link
Collaborator

to start path with a '/' for a zero length path if there is an authority in base.

For expand#t0129 and toRdf#te129.

@gkellogg gkellogg added the bug label Mar 27, 2020
@gkellogg gkellogg requested a review from davidlehn March 27, 2020 17:39
@gkellogg
Copy link
Collaborator Author

Needs to be rebased after PR #381 is merged.

gkellogg added a commit that referenced this pull request Apr 2, 2020
Copy link
Member

@dlongley dlongley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAICT, this looks ok. I ran the URL parser against DID URLs and those have an authority of null, so no strange / chars should get injected into those.

@davidlehn -- we might want some future tests that include DID URLs if we don't have those already.

davidlehn pushed a commit that referenced this pull request Apr 9, 2020
davidlehn pushed a commit that referenced this pull request Apr 9, 2020
Fixed `prependBase` to start path with a '/' for a zero length path if
there is an authority in base.
@davidlehn davidlehn merged commit 49721b1 into master Apr 9, 2020
@davidlehn davidlehn deleted the fix-prependBase branch April 9, 2020 22:00
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.

3 participants