diff options
author | thlo <t.lohmar@gmx.de> | 2013-01-19 14:54:22 +0100 |
---|---|---|
committer | thlo <t.lohmar@gmx.de> | 2013-01-19 14:54:22 +0100 |
commit | dacf1012deaab969d17e4d0ada33abd976dde6be (patch) | |
tree | c8e4ad58b50ba952136691be68934b06c4ee054e | |
parent | beeda32876a89e43f29b8fa8fc2c43bad0544f8b (diff) | |
download | vdr-plugin-smarttvweb-dacf1012deaab969d17e4d0ada33abd976dde6be.tar.gz vdr-plugin-smarttvweb-dacf1012deaab969d17e4d0ada33abd976dde6be.tar.bz2 |
Do XML safe encoding of title in channels.xml
-rwxr-xr-x | vdr-smarttvweb/httpresource.c | 5 |
1 files 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; |