]> git.wh0rd.org - tt-rss.git/commitdiff
Escape ']]>' (closing CDATA tag) when exporting with import_export plugin
authorJeffrey Tolar <tolar.jeffrey@gmail.com>
Wed, 10 Apr 2013 03:46:44 +0000 (22:46 -0500)
committerJeffrey Tolar <tolar.jeffrey@gmail.com>
Wed, 10 Apr 2013 03:46:44 +0000 (22:46 -0500)
plugins/import_export/init.php

index ab47288b3c9e971cb945833a71b544d39232b441..1d7a8e55f96527858322272b00bd43cc0f3f7061 100644 (file)
@@ -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>");
                                        }