Home » Validate » Validate » Bug #9985
Can't validate URI that end with a '/'
Details
| Submitted | 2007-01-31 11:03 UTC |
|---|---|
| From | frederes at free dot fr |
| Status | Duplicate |
| Package | Validate |
| PHP Version | 4.4.4 |
| OS | LINUX / WINDOWS XP |
| Roadmaps | (Not assigned) |
Comments
[2007-01-31 11:03 UTC] frederes at free dot fr
Description:
------------
When validating an URL such as http://www.savac.fr/
the function doesn't validate it because of the trailing slash '/'. (validation ok for http://www.savac.fr )
Test script:
---------------
<?
require_once "Validate.php";
if (Validate::uri("http://www.savac.fr/",array('allowed_schemes' => array('http', 'https'))))
echo "OK";
else
echo "Wrong URL syntax";
?>
Expected result:
----------------
OK
Actual result:
--------------
Wrong URL syntax
[2007-02-02 09:40 UTC] amir at php dot net
Thank you for taking the time to write to us, but this is not
a bug.
The full complience to rfc2396 is not achieved by default.
The characters ';/?:@$,' will not be accepted in the query part if url
isn't encoded.
Take a look at the "strict" option of ::uri
BTW. It's a duplicated one, please search the bugs database before submitting a new bug, Thanks.