[BUGFIX] Prevent deletion of closing bracket via INCLUDE_TYPOSCRIPT 38/37038/8
authorAndreas Allacher <andreas.allacher@gmx.at>
Fri, 20 Feb 2015 09:23:40 +0000 (10:23 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 1 Mar 2015 14:45:26 +0000 (15:45 +0100)
commit40115724193d1205d1a4aea54251de859d1e4351
treed16ce913d290396ec8682ae825414fb8cdeee27d
parentd4f5c041b6d3269179aa0b8c6ab73182c6df0f76
[BUGFIX] Prevent deletion of closing bracket via INCLUDE_TYPOSCRIPT

Due to missing check of the last char being a new line, it is
possible that a closing bracket character is removed by
using INCLUDE_TYPOSCRIPT.
This leads to broken typoscript.
By introducing the missing check this kind of error is prevented.

Change-Id: I92ef213d31c4d62ba797e2741d5a0beaa042c6b3
Resolves: #62280
Releases: master
Reviewed-on: http://review.typo3.org/37038
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/TypoScript/Parser/TypoScriptParser.php