Skip to content

cleanup : remove duplicate _validate_port method in URLSanitizer - #1808

Merged
steam-bell-92 merged 1 commit into
steam-bell-92:mainfrom
tmdeveloper007:#1803
Jul 27, 2026
Merged

cleanup : remove duplicate _validate_port method in URLSanitizer#1808
steam-bell-92 merged 1 commit into
steam-bell-92:mainfrom
tmdeveloper007:#1803

Conversation

@tmdeveloper007

Copy link
Copy Markdown
Contributor

Summary of What Has Been Done

In security/url_sanitizer.py, removed the second (duplicate) _validate_port method definition from the URLSanitizer class. The removed code was an exact copy of the preceding _validate_port implementation.

Changes Made

Deleted the duplicate method definition (15 lines removed).

Impact it Made

  • Cleaner, more maintainable code.
  • No functional change — the validation logic remains intact.

Closes #1803.

Note: Please assign this PR to the tmdeveloper007 account.

@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Anuj's projects Team on Vercel.

A member of the Team first needs to authorize it.

@steam-bell-92
steam-bell-92 merged commit 53451c7 into steam-bell-92:main Jul 27, 2026
1 check failed
@github-actions

Copy link
Copy Markdown
Contributor

🎉 Thank you for your contribution!

Your Pull Request has been merged successfully.
Thanks again for your support! 🙌

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

Labels

gssoc:approved GSSoC 2026 approving tag level:beginner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cleanup: remove duplicate _validate_port method in URLSanitizer class

2 participants