Skip to content

Commit cd6a55a

Browse files
committed
CDATA for configuration values
1 parent b9f4ff9 commit cd6a55a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Installer.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,10 @@ protected function _processDefault(array $params)
11081108
$config = $config->$name;
11091109
}
11101110

1111-
$config[0] = $value;
1111+
// Adding text as cdata
1112+
$node = dom_import_simplexml($config[0]);
1113+
$no = $node->ownerDocument;
1114+
$node->appendChild($no->createCDATASection($value));
11121115

11131116
$this->writeConfig();
11141117
}

0 commit comments

Comments
 (0)