Improve url validation to check duplicate protocol#900
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Instead of nikunj8866 nikunj8866@git.wordpress.org, Use @nikunj8866 WordPress profile. |
|
@nikunj8866 Thanks for the PR. Can you please add PHP Unit test also? |
Improved
is_valid_url()to detect duplicated protocol in URLs.This PR enhances the is_valid_url() function to identify and reject URLs that contain duplicated protocols (e.g., https://http://example.com/).
Fixes #890