Edit report at https://pear.php.net/bugs/bug.php?id=21013&edit=1
ID: 21013
Comment by: qdinar@gmail.com
Reported By: qdinar@gmail.com
Summary: problem with two dots without trailing slash
Status: Assigned
Type: Bug
Package: Net_URL2
Operating System: windows 10
Package Version: Unknown
PHP Version: 5.5.11
Assigned To: tkli
Roadmap Versions:
New Comment:
CVS: $Id: URL2.php 309223 2011-03-14 14:26:32Z till $
the ? signs in the report appeared instead of russian letter f
Previous Comments:
------------------------------------------------------------------------
[2016-01-03 10:26:34] tkli
-Assigned To:
+Assigned To: tkli
Thanks for reporting this issue, could you share which version of
Net_URL2 you're using?
------------------------------------------------------------------------
[2016-01-03 10:14:47] qdinar
Description:
------------
two dots without trailing slash is not counted, it does not work as two
dots
Test script:
---------------
<?php
require_once 'Net/URL2.php';
$base = new Net_URL2('http://???.???/???/zz/..');
echo'<br>';
echo $base->resolve('x.php');
Expected result:
----------------
http://???.???/???/x.php
Actual result:
--------------
http://???.???/???/zz/x.php
------------------------------------------------------------------------