[TASK] Escape reserved characters in yaml files 92/56292/5
authorAnja <aleichsenring@ab-softlab.de>
Sat, 17 Mar 2018 11:29:06 +0000 (12:29 +0100)
committerJan Helke <typo3@helke.de>
Sat, 17 Mar 2018 13:02:58 +0000 (14:02 +0100)
In preparation to update the symfony/yaml dependency to v4,
proper escaping needs to take place.
Following
http://symfony.com/doc/current/components/yaml/yaml_format.html#strings
unsufficient escaping will result in a parse error.

Change-Id: Ic6eb3c2825c8c877d292aaa21e4b0e1a9fee6fe4
Resolves: #84420
Releases: master
Reviewed-on: https://review.typo3.org/56292
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
typo3/sysext/core/Documentation/Changelog/master/Important-84420-ProperlyEscapeReservedCharsInYaml.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Configuration/Loader/YamlFileLoaderTest.php

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Important-84420-ProperlyEscapeReservedCharsInYaml.rst b/typo3/sysext/core/Documentation/Changelog/master/Important-84420-ProperlyEscapeReservedCharsInYaml.rst
new file mode 100644 (file)
index 0000000..764a4c3
--- /dev/null
@@ -0,0 +1,22 @@
+.. include:: ../../Includes.txt
+
+==========================================================
+Important: #84420 - Properly escape reserved chars in yaml
+==========================================================
+
+See :issue:`84420`
+
+Description
+===========
+
+If dealing with YAML files in the TYPO3 system - for instance to configure forms
+using the `form` extension or if configuring `ckeditor` - integrators should properly
+quote strings containing special characters like `@` or `%` to be upwards compatible
+with the version 4 symfony yaml parser.
+
+More information can be found in the Symfony_ docs.
+
+.. _Symfony:: http://symfony.com/doc/current/components/yaml/yaml_format.html#strings
+
+
+.. index:: Backend, Frontend, ext:form, ext:rte_ckeditor
index 783e7d9..b5f508d 100644 (file)
@@ -106,7 +106,7 @@ firstset:
 options:
     - option1
     - option2
-betterthanbefore: %firstset.myinitialversion%
+betterthanbefore: \'%firstset.myinitialversion%\'
 ';
 
         $expected = [