Bug #64948 [Com]: FILTER_VALIDATE_URL does not see urls with underscores as valid URLs.
| From: | julicddda788maxwell at gmail dot com | Date: | Fri, 30 Jun 2023 10:04:40 +0000 |
| Subject: | Bug #64948 [Com]: FILTER_VALIDATE_URL does not see urls with underscores as valid URLs. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-244845@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64948&edit=1
ID: 64948
Comment by: julicddda788maxwell at gmail dot com
Reported by: neclimdul at gmail dot com
Summary: FILTER_VALIDATE_URL does not see urls with
underscores as valid URLs.
Status: Open
Type: Bug
Package: Filter related
Operating System: Ubuntu
PHP Version: 7.2
Block user comment: N
Private report: N
New Comment:
Very good info. (https://github.com)(https://www.yourtexasbenefits.bid/)
Previous Comments:
------------------------------------------------------------------------
[2020-04-07 14:26:17] cmb@php.net
Related To: Bug #68049
------------------------------------------------------------------------
[2018-10-17 14:33:51] rh at tfli dot co dot uk
FWIW, the URL https://electrictobacconist_co_uk.secure-cdn.visualsoft.co.uk/images/gamucci-refills-p86-15678_image.jpg
loads on both MSIE 11 and MS Edge (both on Win10).
I haven't gone as far to check how far it works (e.g. cookies, etc), but it does load the
resource - so I would be inclined to agree with requinix.
------------------------------------------------------------------------
[2018-10-17 03:17:54] yohgaki@php.net
Hostname shouldn't have "_".
However, NETBIOS allows "_" in hostname. DomainKeys/etc use "_" to distinguish
service name and hostname.
This isn't a bug, but feature request for additional option like
FILTER_VALIDATE_URL_WITH_UNDERSCORE or FILTER_VALIDATE_SERVICE_URL.
------------------------------------------------------------------------
[2018-10-16 16:05:20] spam2 at rhsoft dot net
yeah they are somehow supported
then get MSIE and try to verify a web-app working on it too you developed with chrome/firefox and
wonder about all sorts of randomly lost cookies and session errors
my co-worker repeatly wasted hours by add a hostname with underscore to /etc/hosts on his
development machine and then searching issues which would not have happened by follow RFC's
just becaus some fools ignore RFCs makes it not a good idea to follow
------------------------------------------------------------------------
[2018-10-16 16:02:42] requinix@php.net
That URL clearly shows that underscores are supported. At least in my browser. Whether RFCs
technically allow for it or not is besides the point now.
I think FILTER_VALIDATE_URL should allow underscores.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=64948
--
Edit this bug report at https://bugs.php.net/bug.php?id=64948&edit=1