Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix protocol parsing #46

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
Feb 7, 2023
Merged

Fix protocol parsing #46

merged 1 commit into from
Feb 7, 2023

Conversation

EugeneSakun
Copy link
Contributor

There is a bug in the protocol parsing code that makes it incorrectly recognize protocols in URIs that actually don't have any protocol specified, but start with "ftp", "sftp" etc. For example, "ftp.company.com" will be handled incorrectly.

The fix is trivial: a protocol always ends with a semicolon (ftp:, sftp: etc).

@embeddedmz embeddedmz merged commit 794fd90 into embeddedmz:master Feb 7, 2023
@embeddedmz
Copy link
Owner

Thank you for your pull request.

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.

2 participants