Skip to content

Commit

Permalink
CDATA for configuration values
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesbh committed Jul 31, 2013
1 parent b9f4ff9 commit cd6a55a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,10 @@ protected function _processDefault(array $params)
$config = $config->$name;
}

$config[0] = $value;
// Adding text as cdata
$node = dom_import_simplexml($config[0]);
$no = $node->ownerDocument;
$node->appendChild($no->createCDATASection($value));

$this->writeConfig();
}
Expand Down

0 comments on commit cd6a55a

Please sign in to comment.