From dacf1012deaab969d17e4d0ada33abd976dde6be Mon Sep 17 00:00:00 2001 From: thlo Date: Sat, 19 Jan 2013 14:54:22 +0100 Subject: Do XML safe encoding of title in channels.xml --- vdr-smarttvweb/httpresource.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vdr-smarttvweb/httpresource.c b/vdr-smarttvweb/httpresource.c index 5ad8d34..6ecea21 100755 --- a/vdr-smarttvweb/httpresource.c +++ b/vdr-smarttvweb/httpresource.c @@ -1621,7 +1621,7 @@ int cHttpResource::sendChannelsXml (struct stat *statbuf) { for (cChannel *channel = Channels.First(); channel; channel = Channels.Next(channel)) { if (channel->GroupSep()) { - group_sep = channel->Name(); + group_sep = cUrlEncode::doXmlSaveEncode(channel->Name()); continue; } if (--count == 0) { @@ -1662,7 +1662,8 @@ int cHttpResource::sendChannelsXml (struct stat *statbuf) { << " Name= " << channel->Name() << endl; } - string c_name = (group_sep != "") ? (group_sep + "~" + channel->Name()) : channel->Name(); + string c_name = (group_sep != "") ? (group_sep + "~" + cUrlEncode::doXmlSaveEncode(channel->Name())) + : cUrlEncode::doXmlSaveEncode(channel->Name()); // if (writeXmlItem(channel->Name(), link, title, desc, *(channel->GetChannelID()).ToString(), start_time, duration) == ERROR) if (writeXmlItem(c_name, link, title, desc, *(channel->GetChannelID()).ToString(), start_time, duration, -1, -1, -1) == ERROR) return ERROR; -- cgit v1.2.3