Open bluec opened 7 years ago
The YAML export escapes single quotes with a \ which is incorrect and causes an error to occur on the import of any such strings.
In YAML, a double quote '' (i.e. 2 singles) is how a single ' quote is escaped.
Suggested resolution in src/HarrisStreet/CoreConfigData/Exporter/Yaml.php change:
src/HarrisStreet/CoreConfigData/Exporter/Yaml.php
return '\'' . addcslashes($value, '\'') . '\'';
to
return sprintf("'%s'", str_replace('\'', '\'\'', $value));
The YAML export escapes single quotes with a \ which is incorrect and causes an error to occur on the import of any such strings.
In YAML, a double quote '' (i.e. 2 singles) is how a single ' quote is escaped.
Suggested resolution in
src/HarrisStreet/CoreConfigData/Exporter/Yaml.php
change:to