Merge pull request #810 from Robbt/fix-podcast-service

Fix podcast service
This commit is contained in:
Kyle Robbertze 2019-04-26 23:55:50 +02:00 committed by GitHub
commit 36873a2fb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -413,7 +413,7 @@ class Application_Service_PodcastService
return null;
}
$child = $node->addChild($name, null, $namespace);
$child->{0} = $value;
$child[0] = $value;
return $child;
}
@ -445,7 +445,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());