added additional escapes to fix podcast service
This commit is contained in:
parent
8a7d6f805d
commit
5c250fc28a
|
@ -412,7 +412,9 @@ class Application_Service_PodcastService
|
||||||
if (empty($value)) {
|
if (empty($value)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$child = $node->addChild($name, $value, $namespace);
|
$child = $node->addChild($name, null, $namespace);
|
||||||
|
Logging::info($value);
|
||||||
|
$child[0] = $value;
|
||||||
return $child;
|
return $child;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -444,7 +446,7 @@ class Application_Service_PodcastService
|
||||||
|
|
||||||
$imageUrl = Application_Common_HTTPHelper::getStationUrl()."api/station-logo";
|
$imageUrl = Application_Common_HTTPHelper::getStationUrl()."api/station-logo";
|
||||||
$image = $channel->addChild("image");
|
$image = $channel->addChild("image");
|
||||||
$image->addChild("title", $podcast->getDbTitle());
|
$image->addChild("title", htmlspecialchars($podcast->getDbTitle()));
|
||||||
self::addEscapedChild($image, "url", $imageUrl);
|
self::addEscapedChild($image, "url", $imageUrl);
|
||||||
self::addEscapedChild($image, "link", Application_Common_HTTPHelper::getStationUrl());
|
self::addEscapedChild($image, "link", Application_Common_HTTPHelper::getStationUrl());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue