#40676 [NEW]: Add FILTER_VALIDATE_URI (replacing FILTER_VALIDATE_URL)?
| From: | walter dot tom+php at gmail dot com | Date: | Thu, 01 Mar 2007 03:22:56 +0000 |
| Subject: | #40676 [NEW]: Add FILTER_VALIDATE_URI (replacing FILTER_VALIDATE_URL)? | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-109731@lists.php.net to get a copy of this message | ||
From: walter dot tom+php at gmail dot com
Operating system:
PHP version: 5.2.1
PHP Bug Type: Feature/Change Request
Bug description: Add FILTER_VALIDATE_URI (replacing FILTER_VALIDATE_URL)?
Description:
------------
It appears as of the fix for #39898 that support for validating relative
URLs and URLs without a schema has been removed, without any option to
allow them.
I understand the reasoning is that the RFC specifies that a URL must
include a schema and a host, which is fair enough.
But it leaves the user with no simple way to validate domain names or
relative URLs.
So can I suggest that we add a FILTER_VALIDATE_URI type that would allow
domains, relative paths, or full URLs?
--
Edit bug report at http://bugs.php.net/?id=40676&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40676&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40676&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40676&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40676&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40676&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40676&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40676&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40676&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40676&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40676&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40676&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40676&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40676&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40676&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40676&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40676&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40676&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40676&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40676&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40676&r=mysqlcfg