1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:05:56 +00:00

Escape ']]>' (closing CDATA tag) when exporting with import_export plugin

This commit is contained in:
Jeffrey Tolar
2013-04-09 22:46:44 -05:00
parent 3a8d756ce1
commit c541d3a57e

View File

@@ -162,6 +162,7 @@ class Import_Export extends Plugin implements IHandler {
fputs($fp, "<article>"); fputs($fp, "<article>");
foreach ($line as $k => $v) { foreach ($line as $k => $v) {
$v = str_replace("]]>", "]]]]><![CDATA[>", $v);
fputs($fp, "<$k><![CDATA[$v]]></$k>"); fputs($fp, "<$k><![CDATA[$v]]></$k>");
} }