From 119c30b99982bf76c13b3c364f44864e2a9993e6 Mon Sep 17 00:00:00 2001 From: Mitsukarenai Date: Mon, 27 Oct 2014 15:16:39 +0100 Subject: [PATCH] fix AtomFormat elements escaping --- formats/AtomFormat.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/formats/AtomFormat.php b/formats/AtomFormat.php index 316d5fc..84787e3 100644 --- a/formats/AtomFormat.php +++ b/formats/AtomFormat.php @@ -22,9 +22,9 @@ class AtomFormat extends FormatAbstract{ $entries = ''; foreach($this->getDatas() as $data){ - $entryName = htmlspecialchars(is_null($data->name) ? $title : $data->name); - $entryAuthor = htmlspecialchars(is_null($data->author) ? $uri : $data->author); - $entryTitle = htmlspecialchars(is_null($data->title) ? '' : $data->title); + $entryName = strip_tags(is_null($data->name) ? $title : $data->name); + $entryAuthor = strip_tags(is_null($data->author) ? $uri : $data->author); + $entryTitle = strip_tags(is_null($data->title) ? '' : $data->title); $entryUri = htmlspecialchars(is_null($data->uri) ? '' : $data->uri); $entryTimestamp = is_null($data->timestamp) ? '' : date(DATE_ATOM, $data->timestamp); // We prevent content from closing the CDATA too early.