In FileBackendBase/FileBackend:
authorAaron Schulz <aaron@users.mediawiki.org>
Sun, 29 Jan 2012 21:28:31 +0000 (21:28 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sun, 29 Jan 2012 21:28:31 +0000 (21:28 +0000)
commit9a1452ae92f65ea334df4796438dbb6a9d714d66
treef890139c6fe8b57d754b6388bff00e252c8d591c
parent3dad5911eb2fe1c4c1e613c81ef5d4cd361b3032
In FileBackendBase/FileBackend:
* Moved some public static functions from FileBackend to FileBackendBase as the later defines the public API.
* Made splitStoragePath() return null if the backend or container name is empty.
* Made normalizeContainerPath() kill leading directory separators.
* Added more unit tests and made some documentation tweaks.
In FSFileBackend:
* Added resolveContainerName() to disallow '.' a container name, since this would cause a traversal.
includes/filerepo/backend/FSFileBackend.php
includes/filerepo/backend/FileBackend.php
tests/phpunit/includes/filerepo/FileBackendTest.php