summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-09 21:14:57 -0700
committerAndrew Dolgov <[email protected]>2013-04-09 21:14:57 -0700
commit6201154848d1bfdee74e98f4816b18a3495a4cb3 (patch)
tree73bb7b407d1a6200189e52f56f8c55396c52f6fa
parent8a04906f896911f7087f3cd8aeed251fd530216c (diff)
parentc541d3a57e061521aa24d41dcedee0b1831f71c3 (diff)
Merge pull request #144 from lotrfan/import_export_fix
[import_export plugin] Escape ']]>' (closing CDATA tag) when exporting feeds
-rw-r--r--plugins/import_export/init.php1
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>");
}