config migration - CDATA added to tags
-
Hi all,
Upon exporting config.xml from 2.3.4 and importing to 2.4.4 I've noticed that some tags have been replaced as below:
<descr>value</descr>
<statetype>value</statetype>with:
<descr><![CDATA[value]]></descr>
<statetype><![CDATA[value]]></statetype>It doesn't seem to be affecting functionality but I'm curious to know why this happened and whether it's safe to roll it back manually (i.e. remove <![CDATA[]]>)?
Thanks,
Adam -
It defines it as character data. It's expected, don't remove it.
https://en.wikipedia.org/wiki/CDATASteve
-
On the older version those fields were not properly protected, so if someone entered a character that was not valid xml (such as an accented character) it would cause the config to be tossed out. Those characters are fine to have inside CDATA tags, though. We don't go too nuts with the CDATA encapsulation though because it adds a bit of extra data to the config, making it larger.