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

Check netloc in urlparse result if path is empty #803

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

a-weiss-programmer
Copy link

  • Please check if the PR fulfills these requirements
  • Tests for the changes have been added
  • Docs have been added / updated
  • All CI checks are green
  • What kind of change does this PR introduce?

This fixes a bug where certain versions of urllib will put the results of a parsed file (e.g. file://testing/custom_filters.py::is_invalid_secret) into the netloc property of urlparse instead of the path property.

  • What is the current behavior?

#715

  • What is the new behavior (if this is a feature change)?
    The custom filter parser will now check netloc if path is not populated

  • Does this PR introduce a breaking change?

Users should have to make no changes, as it prefers path over netloc

  • Other information:

@lorenzodb1
Copy link
Member

@a-weiss-programmer thank you for your contribution! Could you advice me on which version have one or the other behaviour?

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.

None yet

2 participants