* Handle ampersands properly on TiVo.

This commit is contained in:
Justin Maggard 2009-03-17 08:48:12 +00:00
parent f04296de38
commit 58862a115f

View File

@ -117,7 +117,7 @@ int callback(void *args, int argc, char **argv, char **azColName)
{ {
return 0; return 0;
} }
sprintf(str_buf, "<Title>%s</Title>", title); sprintf(str_buf, "<Title>%s</Title>", modifyString(title, "&amp;amp;", "&amp;", 0));
strcat(passed_args->resp, str_buf); strcat(passed_args->resp, str_buf);
if( artist ) { if( artist ) {
sprintf(str_buf, "<ArtistName>%s</ArtistName>", artist); sprintf(str_buf, "<ArtistName>%s</ArtistName>", artist);
@ -163,7 +163,7 @@ int callback(void *args, int argc, char **argv, char **azColName)
"<SourceFormat>x-container/folder</SourceFormat>"); "<SourceFormat>x-container/folder</SourceFormat>");
sprintf(str_buf, "<Title>%s</Title>" sprintf(str_buf, "<Title>%s</Title>"
"<TotalItems>%s</TotalItems>" "<TotalItems>%s</TotalItems>"
"</Details>", title, result[1]); "</Details>", modifyString(title, "&amp;amp;", "&amp;", 0), result[1]);
strcat(passed_args->resp, str_buf); strcat(passed_args->resp, str_buf);
sprintf(str_buf, "<Links><Content>" sprintf(str_buf, "<Links><Content>"