note 128875 added to function.filter-var
| From: | remindfwd at main dot php dot net | Date: | Fri, 08 Sep 2023 13:08:28 +0000 |
| Subject: | note 128875 added to function.filter-var | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220836@lists.php.net to get a copy of this message | ||
Please note that the following will return true, even if the URL is not correct. Because it validate
only domain, subdomain, path and query, not the protocol.
<?php
filter_var( 'http://https://somedomain.com',
FILTER_VALIDATE_URL );
?>
Please read more on https://www.php.net/manual/en/filter.filters.validate.php
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.157.134 (proxied: 2a02:2f0d:d915:7300:440c:e469:daeb:6652)
----
Manual Page -- https://php.net/manual/en/function.filter-var.php
Edit -- https://main.php.net/note/edit/128875
Del: integrated -- https://main.php.net/note/delete/128875/integrated
Del: useless -- https://main.php.net/note/delete/128875/useless
Del: bad code -- https://main.php.net/note/delete/128875/bad+code
Del: spam -- https://main.php.net/note/delete/128875/spam
Del: non-english -- https://main.php.net/note/delete/128875/non-english
Del: in docs -- https://main.php.net/note/delete/128875/in+docs
Del: other reasons-- https://main.php.net/note/delete/128875
Reject -- https://main.php.net/note/reject/128875
Search -- https://main.php.net/manage/user-notes.php