[BUGFIX] Escape strings for JavaScript usage
authorFrancois Suter <francois@typo3.org>
Tue, 16 Oct 2012 15:14:37 +0000 (17:14 +0200)
committerMarco Bresch <marco.bresch@starfinanz.de>
Wed, 17 Oct 2012 12:02:07 +0000 (14:02 +0200)
commita34cd163bef9bf42ce357047ff11f383d077e9bb
tree84458a78bbd03a256cdef535c6a1886ae6356614
parent4bba7f3e8e58076cff4a3114164852066079c1a0
[BUGFIX] Escape strings for JavaScript usage

The Preview Controller loads a number of strings in the JavaScript
TYPO3.lang object. These strings must be properly escaped lest
they create syntax errors when the string contains single quotes.

Change-Id: Ifbbd3385b02b972b03fdae09869d5c29076776f7
Resolves: #42051
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/15740
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Francois Suter
Tested-by: Francois Suter
Reviewed-by: Marco Bresch
Tested-by: Marco Bresch
typo3/sysext/workspaces/Classes/Controller/PreviewController.php