Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix: fix ls crash #2546

Merged
merged 1 commit into from
Oct 17, 2019
Merged

fix: fix ls crash #2546

merged 1 commit into from
Oct 17, 2019

Conversation

achingbrain
Copy link
Member

  • sanitises input to replace multiple slashes with single slashes
  • removes trailing slashes
  • uses 0 for padding when link.depth results in negative padding

N.b will be resolved in a better way by ipfs/js-ipfs-unixfs-exporter#24

Fixes #2540

* sanitises input to replace multiple slashes with single slashes
* removes trailing slashes
* uses `0` for padding when `link.depth` results in negative padding

N.b will be resolved in a better way by ipfs/js-ipfs-unixfs-exporter#24
Copy link
Member

@AuHau AuHau left a comment

Choose a reason for hiding this comment

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

As a temporary fix, this will work well.

@achingbrain achingbrain merged commit 09041c3 into master Oct 17, 2019
@achingbrain achingbrain deleted the fix-ls-crash branch October 17, 2019 14:43
achingbrain added a commit that referenced this pull request Oct 17, 2019
* sanitises input to replace multiple slashes with single slashes
* removes trailing slashes
* uses `0` for padding when `link.depth` results in negative padding

N.b will be resolved in a better way by ipfs/js-ipfs-unixfs-exporter#24
achingbrain added a commit that referenced this pull request Oct 17, 2019
* sanitises input to replace multiple slashes with single slashes
* removes trailing slashes
* uses `0` for padding when `link.depth` results in negative padding

N.b will be resolved in a better way by ipfs/js-ipfs-unixfs-exporter#24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants