[php-src] Issue #10901: FILTER_VALIDATE_URL returns false when it should return true

From: Date: Tue, 21 Mar 2023 13:45:11 +0000
Subject: [php-src] Issue #10901: FILTER_VALIDATE_URL returns false when it should return true
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-243956@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/10901 Author: lolcatw ### Description The following code: ```php <?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-. Many thanks. ### PHP Version 7.4.33 ### Operating System Debian 11

« previous php.bugs (#243956) next »