diff options
author | Jeffrey Tolar <[email protected]> | 2013-04-09 22:46:44 -0500 |
---|---|---|
committer | Jeffrey Tolar <[email protected]> | 2013-04-09 22:46:44 -0500 |
commit | c541d3a57e061521aa24d41dcedee0b1831f71c3 (patch) | |
tree | f8895d99e6a512772729d5cbceef84f2b9c8597e | |
parent | 3a8d756ce18ad8ad0b1f37bead4786c34c67ca53 (diff) |
Escape ']]>' (closing CDATA tag) when exporting with import_export plugin
-rw-r--r-- | plugins/import_export/init.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/import_export/init.php b/plugins/import_export/init.php index ab47288b3..1d7a8e55f 100644 --- a/plugins/import_export/init.php +++ b/plugins/import_export/init.php @@ -162,6 +162,7 @@ class Import_Export extends Plugin implements IHandler { fputs($fp, "<article>"); foreach ($line as $k => $v) { + $v = str_replace("]]>", "]]]]><![CDATA[>", $v); fputs($fp, "<$k><![CDATA[$v]]></$k>"); } |