nyamsprod , 2 days ago #PHP #URL periodic reminder 1 - parse_url IS NOT a validator it will successfully parse an invalid URL 2 - URL validation is scheme based without a scheme your validation is NEVER 100% accurate! 3 - There is not such a thing as a query string RFC.. there are conventions, expectations, she says, he says ... and URLSearchParams. 4 - RFC3986 and WHATWG URL specifications are not the same one aim to replace the other but sometimes they contradict each others
#PHP #URL periodic reminder
1 - parse_url IS NOT a validator it will successfully parse an invalid URL
2 - URL validation is scheme based without a scheme your validation is NEVER 100% accurate!
3 - There is not such a thing as a query string RFC.. there are conventions, expectations, she says, he says ... and URLSearchParams.
4 - RFC3986 and WHATWG URL specifications are not the same one aim to replace the other but sometimes they contradict each others