[BUGFIX] RTE-API: correct check for backpath in writeTemporaryFile 69/44769/2
authorAndreas Allacher <andreas@allacher.com>
Wed, 18 Nov 2015 15:06:29 +0000 (16:06 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Wed, 18 Nov 2015 15:56:42 +0000 (16:56 +0100)
commit031c602170dc97f3c992ea289f39b7d36ecae6e5
treed7350d83d0b83d35fcbdfb2398c98e01a50c4e83
parent6a83685f84368363a7e966fa415f4daf35eee69f
[BUGFIX] RTE-API: correct check for backpath in writeTemporaryFile

\TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi::writeTemporaryFile needs to
also check regarding FE_MODE or frontend editing active like in
\TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi::getFullFileName to
resolve the backpath.

Otherwise extensions that create a TSFE object in the backend
but don't remove it, might result in wrong paths being used.

Change-Id: I7e16c4d7037d90c5dc044e5882455916e6c43a4b
Resolves: #71656
Releases: master
Reviewed-on: https://review.typo3.org/44769
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/rtehtmlarea/Classes/RteHtmlAreaApi.php