Skip to content
Snippets Groups Projects
Commit 3dce8e62 authored by Anja's avatar Anja Committed by Jan Helke
Browse files

[TASK] Escape reserved characters in yaml files

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: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarJan Helke <typo3@helke.de>
Tested-by: default avatarJan Helke <typo3@helke.de>
parent 6bf2947b
Branches
Tags
No related merge requests found
.. 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
......@@ -106,7 +106,7 @@ firstset:
options:
- option1
- option2
betterthanbefore: %firstset.myinitialversion%
betterthanbefore: \'%firstset.myinitialversion%\'
';
$expected = [
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment