Skip to content

Fixed prependBase - #384

Merged
davidlehn merged 1 commit into
masterfrom
fix-prependBase
Apr 9, 2020
Merged

davidlehn merged 1 commit into
masterfrom
fix-prependBase

Conversation

@gkellogg

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

Needs to be rebased after PR #381 is merged.

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

@dlongley dlongley left a comment

Copy link
Copy Markdown
Member

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