From c541d3a57e061521aa24d41dcedee0b1831f71c3 Mon Sep 17 00:00:00 2001 From: Jeffrey Tolar Date: Tue, 9 Apr 2013 22:46:44 -0500 Subject: [PATCH] Escape ']]>' (closing CDATA tag) when exporting with import_export plugin --- plugins/import_export/init.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/import_export/init.php b/plugins/import_export/init.php index ab47288b..1d7a8e55 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, "
"); foreach ($line as $k => $v) { + $v = str_replace("]]>", "]]]]>", $v); fputs($fp, "<$k>"); } -- 2.39.5