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

Gateway Input Bug #73

Open
0xferit opened this issue Jun 23, 2024 · 0 comments
Open

Gateway Input Bug #73

0xferit opened this issue Jun 23, 2024 · 0 comments

Comments

@0xferit
Copy link
Member

0xferit commented Jun 23, 2024

Passing a gateway with a trailing slash causes the program to generate a URI such as gateway/ipfs/path/ipfs/path instead of gateway/ipfs/path, basically duplicating the last two tokens. I observed this behavior with inputs "https://cdn.kleros.link" and "https://cdn.kleros.link/".

This function appears to have a bug.

URI manipulation should be debugged; ideally, we should create tests for URI manipulations to ensure they work and avoid regressions.

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

No branches or pull requests

1 participant