[BUGFIX] Properly check permissions with read only file mounts 64/34964/3
authorHelmut Hummel <helmut.hummel@typo3.org>
Thu, 27 Nov 2014 22:14:45 +0000 (23:14 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 5 Dec 2014 17:33:15 +0000 (18:33 +0100)
commit8e1e0e5fdcbecedbb3cf2dde14305e8867ea4b3a
tree5501dd9b6a210b34e01d8d1e9ac58596baa26688
parentdae24a621c259d89ae490a37d9aa2f78927cb020
[BUGFIX] Properly check permissions with read only file mounts

Previously the permission check returned false if the
file or folder was within a read only file mount, but
also within a writable file mount.

Properly check this now and centralize the check in
isWithinFileMountBoundaries, which now has an additional
argument whether write access to file mounts should be checked or not.

Resolves: #63364
Related: #49391
Releases: master, 6.2
Change-Id: If90958b7d6e4d5aad1fbd172af06462ca2b9764f
Reviewed-on: http://review.typo3.org/34964
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Alexander Stehlik <alexander.stehlik@gmail.com>
Tested-by: Alexander Stehlik <alexander.stehlik@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Resource/ResourceStorage.php
typo3/sysext/core/Tests/Unit/Resource/ResourceStorageTest.php