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

Sanitize mint URL before adding #606

Merged
merged 2 commits into from
Sep 8, 2024
Merged

Sanitize mint URL before adding #606

merged 2 commits into from
Sep 8, 2024

Conversation

callebtc
Copy link
Collaborator

@callebtc callebtc commented Jul 31, 2024

This pull request adds a new function sanitize_url that sanitizes the provided URL by extracting the host, lowercasing it, and removing any trailing slashes. The function is then used to sanitize the mint URL before adding it to the wallet. This ensures that the mint URL is in the correct format and avoids any potential issues caused by inconsistent URL formatting.

Closes #603

@callebtc callebtc merged commit 0287c02 into main Sep 8, 2024
18 checks passed
@callebtc callebtc deleted the wallet-sanitize-url-2 branch September 8, 2024 13:59
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.

Bug: Wallet should sanitize mint URLs
1 participant