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
The following code:
<?php var_dump(filter_var("https://www.bug.com/wp-content/uploads/2022/09/Famous-Internet-Man-512-×-512-px-1.png", FILTER_VALIDATE_URL));
Resulted in this output:
bool(false)
But I expected this output instead:
string(x) <url here>
This seems to be due to the fact that the URL contains -x-.
-x-
Many thanks.
7.4.33
Debian 11
The text was updated successfully, but these errors were encountered:
You need to urlencode for the × character. https://3v4l.org/tnV99 Modern browser will replace percent encoded characters for usability. See https://stackoverflow.com/questions/2742852/unicode-characters-in-urls for more information.
urlencode
×
Sorry, something went wrong.
No branches or pull requests
Description
The following code:
Resulted in this output:
But I expected this output instead:
This seems to be due to the fact that the URL contains
-x-
.Many thanks.
PHP Version
7.4.33
Operating System
Debian 11
The text was updated successfully, but these errors were encountered: