added additional escapes to fix podcast service

This commit is contained in:
Robbt 2019-04-24 22:19:45 -04:00
parent 8a7d6f805d
commit 5c250fc28a
1 changed files with 4 additions and 2 deletions

View File

@ -412,7 +412,9 @@ class Application_Service_PodcastService
if (empty($value)) {
return null;
}
$child = $node->addChild($name, $value, $namespace);
$child = $node->addChild($name, null, $namespace);
Logging::info($value);
$child[0] = $value;
return $child;
}
@ -444,7 +446,7 @@ class Application_Service_PodcastService
$imageUrl = Application_Common_HTTPHelper::getStationUrl()."api/station-logo";
$image = $channel->addChild("image");
$image->addChild("title", $podcast->getDbTitle());
$image->addChild("title", htmlspecialchars($podcast->getDbTitle()));
self::addEscapedChild($image, "url", $imageUrl);
self::addEscapedChild($image, "link", Application_Common_HTTPHelper::getStationUrl());