Skip to content

Commit

Permalink
Filter out NULL-characters from EIT before we save the data in the da…
Browse files Browse the repository at this point in the history
…tabase.

Refs #8707.
  • Loading branch information
Kenni Lund committed Apr 13, 2011
1 parent e4f859a commit 43bef4e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mythtv/libs/libmythtv/eitfixup.cpp
Expand Up @@ -186,11 +186,22 @@ void EITFixUp::Fix(DBEventEIT &event) const
if (event.fixup)
{
if (!event.title.isEmpty())
{
event.title = event.title.replace(QChar('\0'), "");
event.title = event.title.trimmed();
}

if (!event.subtitle.isEmpty())
{
event.subtitle = event.subtitle.replace(QChar('\0'), "");
event.subtitle = event.subtitle.trimmed();
}

if (!event.description.isEmpty())
{
event.description = event.description.replace(QChar('\0'), "");
event.description = event.description.trimmed();
}
}

if (kFixGenericDVB & event.fixup)
Expand Down

0 comments on commit 43bef4e

Please sign in to comment.