We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We have pretty basic URL validation currently:
function is_valid_url( $url ) { return filter_var( $url, FILTER_VALIDATE_URL ) === $url && str_starts_with( $url, 'http' ); }
We frequently get this type of URL with duplicated protocol but our function does not detect that.
https://http://example.com/
We could improve the is_valid_url() function to handle such edge case.
is_valid_url()
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
We have pretty basic URL validation currently:
We frequently get this type of URL with duplicated protocol but our function does not detect that.
We could improve the
is_valid_url()
function to handle such edge case.The text was updated successfully, but these errors were encountered: