[TYPO3-core] RFC: #14971: Unit test for sanitizeLocalUrl fails on installations inside a subdirectory

Stefan Galinski stefan.galinski at gmail.com
Fri Jul 2 13:17:12 CEST 2010


Hi,

this is a SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=14971

Branches: trunk

Problem:
The unit tests for sanitizeLocalUrl are failing if the installation is 
inside a subdirectory.

Solution:
Fixed the validLocalUrlDataProvider to provide directories that consider 
subdirectories.

How to test:
Execute the t3lib_divTest::sanitizeLocalUrlAcceptsPlainValidUrls test with 
tx_phpunit. 

Note: This patch was a result of the work at the unit testing workshop at 
the #t3dd10 by Pascal Jungblut and myself.

-- 
Stefan Galinski
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 14971_v1.diff
Type: text/x-patch
Size: 1885 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100702/0dcd7648/attachment.bin>


More information about the TYPO3-team-core mailing list