From f3774b9d65cdd189d9caeac8066b8a3e27c5d549 Mon Sep 17 00:00:00 2001 From: wn_ Date: Sat, 9 Sep 2017 13:51:59 -0500 Subject: Use 'saveHTML' when generating HTML from a DOMDocument. This primarily occurs when modifying article content. If 'saveXML' is used following 'loadHTML' there is the possibility of strangeness, such as a self-closing anchor tag. Note that the DOMDocument used in 'classes/feeditem/atom.php' came from 'loadXML', but we use 'saveHTML' since we're returning HTML content. --- plugins/af_zz_imgproxy/init.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/af_zz_imgproxy/init.php') diff --git a/plugins/af_zz_imgproxy/init.php b/plugins/af_zz_imgproxy/init.php index c3b3f7fd5..41fec4ac5 100644 --- a/plugins/af_zz_imgproxy/init.php +++ b/plugins/af_zz_imgproxy/init.php @@ -199,7 +199,7 @@ class Af_Zz_ImgProxy extends Plugin { } } - if ($need_saving) $article["content"] = $doc->saveXML(); + if ($need_saving) $article["content"] = $doc->saveHTML(); return $article; } @@ -257,4 +257,4 @@ class Af_Zz_ImgProxy extends Plugin { function api_version() { return 2; } -} \ No newline at end of file +} -- cgit v1.2.3