[BUGFIX] Path utility resolves incorrect
authorIngmar Schlecht <ingmar@typo3.org>
Fri, 20 Apr 2012 15:58:17 +0000 (17:58 +0200)
committerTolleiv Nietsch <tolleiv.nietsch@typo3.org>
Sat, 21 Apr 2012 09:31:41 +0000 (11:31 +0200)
commit786dabd07e7906fe0d677fdf298e651957387a76
tree940310707ffbdd71e1b39bf414dbc604e0985595
parent47a26c445473a40752810158daf0865c04907c4b
[BUGFIX] Path utility resolves incorrect

The path utility resolves incorrect if target path is
only one level below source path.

Example:
From "mypath/" to "mypath/t3lib/" it's just
"t3lib/" instead of "../t3lib/".

Change-Id: I11c4734a4b64d73773e58d6a2c2c0b218c09109a
Fixes: #36385
Releases: 6.0, 4.7
Reviewed-on: http://review.typo3.org/10653
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
t3lib/utility/class.t3lib_utility_path.php
tests/t3lib/utility/class.t3lib_utility_pathTest.php