diff options
-rw-r--r-- | menu_whatson.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/menu_whatson.c b/menu_whatson.c index b8f6701..a620251 100644 --- a/menu_whatson.c +++ b/menu_whatson.c @@ -158,7 +158,13 @@ bool cMenuMyScheduleItem::Update(bool Force) char* buffer = strdup(menutemplate); strreplace(buffer, '|', '\t'); - buffer = strreplacei(buffer, "%title%", event?event->Title():tr(">>> no info! <<<")); + char* title = NULL; + msprintf(&title, "%s", event?event->Title():tr(">>> no info! <<<")); + title = strreplacei(title, ":", "%colon%"); // asume a title has the form "a?b:c", + // we need to replace the colon to avoid misinterpretation the expression as a condition + buffer = strreplacei(buffer, "%title%", title); + free(title); + if (channel) { char szChannelNr[6] = ""; @@ -182,6 +188,7 @@ bool cMenuMyScheduleItem::Update(bool Force) buffer = strreplacei(buffer, "$r_status$", r); + buffer = FixSeparators(buffer, '~'); buffer = FixSeparators(buffer, ':'); buffer = FixSeparators(buffer, '-'); |