|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-08-05 07:09 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2021-08-05 07:09 UTC] requinix@php.net
[2021-08-05 07:23 UTC] tamas dot nagy0404 at outlook dot com
[2021-08-05 07:54 UTC] requinix@php.net
[2021-08-05 08:15 UTC] tamas dot nagy0404 at outlook dot com
[2021-08-05 22:02 UTC] requinix@php.net
-Summary: urn: URIs are not validated properly
+Summary: FILTER_VALIDATE_URL does not validate URNs or general
URIs
-Status: Not a bug
+Status: Open
-Type: Bug
+Type: Documentation Problem
[2021-08-05 22:02 UTC] requinix@php.net
[2025-02-02 21:49 UTC] bukka@php.net
-Package: URL related
+Package: Filter related
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 21:00:01 2025 UTC |
Description: ------------ Hi, Looks like the `filter_var('urn:isbn:0451450523', FILTER_VALIDATE_URL);` function does not validate the urn: type of URIs properly. The "urn:" type of URIs are mentioned by http://www.faqs.org/rfcs/rfc2396.html however the function just marks as invalid whereas it should validate it according to http://www.faqs.org/rfcs/rfc2141.html that is referenced from the RFC2396. Related comment: https://www.php.net/manual/en/filter.filters.validate.php#110411 Tests: https://3v4l.org/SOd9X#veol Test script: --------------- https://3v4l.org/SOd9X#veol Expected result: ---------------- I would expect to validate urn: URIs to be validated properly according to http://www.faqs.org/rfcs/rfc2141.html